ajhc-0.8.0.5: Haskell compiler that produce binary through C language

Safe HaskellNone

FrontEnd.Class

Documentation

data ClassRecord Source

Constructors

ClassRecord 

Fields

className :: !Class

can be a TypeConstructor if we are a type or data family

classSrcLoc :: !SrcLoc
 
classArgs :: [Tyvar]
 
classSupers :: [Class]
 
classAlias :: Maybe (Qual [Pred])
 
classAssumps :: [(Name, Sigma)]

method signatures

classAssocs :: [AssociatedType]
 

instanceName :: (Show a, Show a1) => a -> a1 -> NameSource

checkForDuplicateInstacesSource

Arguments

:: MonadWarn m 
=> ClassHierarchy

imported class hierarchy

-> ClassHierarchy

locally defined hierarchy

-> m ClassHierarchy

possibly simplified local hierarchy

newtype InstanceEnv Source

Constructors

InstanceEnv 

Fields

instanceEnv :: Map (Name, Name) ([Tyvar], [Tyvar], Type)
 

data Inst Source

Constructors

Inst 

Fields

instSrcLoc :: SrcLoc
 
instDerived :: !Bool

whether this instance was derived

instHead :: Qual Pred
 
instAssocs :: [(Tycon, [Tyvar], [Tyvar], Sigma)]
 

Instances