1 {-# LANGUAGE FlexibleContexts #-}
2 {-# LANGUAGE FlexibleInstances #-}
3 {-# LANGUAGE MultiParamTypeClasses #-}
4 {-# LANGUAGE PatternSynonyms #-}
5 {-# LANGUAGE ScopedTypeVariables #-}
6 {-# LANGUAGE TypeFamilies #-}
7 {-# OPTIONS_GHC -fno-warn-orphans #-}
8 module Language.Symantic.Type.Bool where
11 import Language.Symantic.Type.Root
12 import Language.Symantic.Type.Type0
16 type Type_Bool = Type_Type0 (Proxy Bool)
18 pattern Type_Bool :: Type_Bool root Bool
19 pattern Type_Bool = Type_Type0 Proxy
21 instance -- String_from_Type
22 String_from_Type (Type_Bool root) where
23 string_from_type _ = "Bool"
25 -- | Inject 'Type_Bool' within a root type.
26 type_bool :: Lift_Type_Root Type_Bool root => root Bool
27 type_bool = type_type0
29 instance Constraint_Type Monoid (Type_Bool root)