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