]> Git — Sourcephile - haskell/symantic.git/blob - Language/Symantic/Type/Bool.hs
init
[haskell/symantic.git] / Language / Symantic / Type / Bool.hs
1 {-# LANGUAGE FlexibleContexts #-}
2 {-# LANGUAGE FlexibleInstances #-}
3 {-# LANGUAGE PatternSynonyms #-}
4 {-# LANGUAGE ScopedTypeVariables #-}
5 {-# LANGUAGE TypeFamilies #-}
6 {-# OPTIONS_GHC -fno-warn-orphans #-}
7 module Language.Symantic.Type.Bool where
8
9 import Data.Proxy
10 import Language.Symantic.Type.Common
11
12 -- * Type 'Type_Bool'
13 -- | The 'Bool' type.
14 type Type_Bool = Type_Type0 (Proxy Bool)
15
16 pattern Type_Bool :: Type_Bool root Bool
17 pattern Type_Bool = Type_Type0 Proxy
18
19 instance -- String_from_Type
20 String_from_Type (Type_Bool root) where
21 string_from_type _ = "Bool"
22
23 -- | Inject 'Type_Bool' within a root type.
24 type_bool :: Lift_Type_Root Type_Bool root => root Bool
25 type_bool = type_type0