{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module Language.Symantic.Type.Bool where import Data.Proxy import Language.Symantic.Type.Root import Language.Symantic.Type.Type0 import Language.Symantic.Type.Constraint import Language.Symantic.Type.Family import qualified Data.MonoTraversable as MT -- * Type 'Type_Bool' -- | The 'Bool' type. type Type_Bool = Type0 (Proxy Bool) pattern Type_Bool :: Type_Bool root Bool pattern Type_Bool = Type0 Proxy instance Type0_Constraint Eq (Type_Bool root) where type0_constraint _c Type0{} = Just Dict instance Type0_Constraint Ord (Type_Bool root) where type0_constraint _c Type0{} = Just Dict instance Type0_Constraint Monoid (Type_Bool root) instance Type0_Constraint Num (Type_Bool root) instance Type0_Constraint Integral (Type_Bool root) instance Type0_Family Type_Family_MonoElement (Type_Bool root) instance Type0_Constraint MT.MonoFunctor (Type_Bool root) instance String_from_Type (Type_Bool root) where string_from_type _ = "Bool" -- | Inject 'Type_Bool' within a root type. type_bool :: Type_Root_Lift Type_Bool root => root Bool type_bool = type0