{-# 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 -- * Type 'Type_Bool' -- | The 'Bool' type. type Type_Bool = Type_Type0 (Proxy Bool) pattern Type_Bool :: Type_Bool root Bool pattern Type_Bool = Type_Type0 Proxy instance Constraint_Type Eq (Type_Bool root) where constraint_type _c Type_Type0{} = Just Dict instance Constraint_Type Ord (Type_Bool root) where constraint_type _c Type_Type0{} = Just Dict instance Constraint_Type Monoid (Type_Bool root) instance Constraint_Type Num (Type_Bool root) instance Constraint_Type Integral (Type_Bool root) instance String_from_Type (Type_Bool root) where string_from_type _ = "Bool" -- | Inject 'Type_Bool' within a root type. type_bool :: Lift_Type_Root Type_Bool root => root Bool type_bool = type_type0