rescue-0.2.0: library/Data/WorldPeace/IsOpenUnion/Family.hs
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeFamilies #-}
module Data.WorldPeace.IsOpenUnion.Family (IsOpenUnion) where
import Data.WorldPeace
-- | Type-level check that a type is an open union.
-- For use with the @Subset'@ typeclass.
type family (IsOpenUnion a) :: Bool where
IsOpenUnion (OpenUnion a) = 'True
IsOpenUnion a = 'False