use Type
This commit is contained in:
parent
4cc8bc1f24
commit
d59417834d
@ -13,6 +13,7 @@
|
||||
-- | Defines the boolean type and logical operators
|
||||
module Data.Bool where
|
||||
|
||||
import Data.Kind (Type)
|
||||
import Data.TypeClass (Eq, Enum, Show)
|
||||
import Data.Singletons.TH
|
||||
import Data.Singletons.Prelude.Enum
|
||||
@ -21,7 +22,7 @@ import Data.Singletons.Prelude.Enum
|
||||
singletons [d|
|
||||
|
||||
-- | Boolean Type
|
||||
data 𝔹 ∷ ★ where
|
||||
data 𝔹 ∷ Type where
|
||||
T ∷ 𝔹 -- ^ True
|
||||
F ∷ 𝔹 -- ^ False
|
||||
deriving (Eq, Show)
|
||||
|
Loading…
Reference in New Issue
Block a user