| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Codegen.Typegen
Description
Extract and encapsulate the type information needed during codegen.
Synopsis
- data DConInfo = DConInfo {- dconType :: TConId
- dconSize :: Int
- dconOnHeap :: Bool
- dconCase :: Exp
- dconConstruct :: Exp
- dconDestruct :: Int -> Exp -> Exp
 
- data TConInfo = TConInfo {- typeEncoding :: TypeEncoding
- typeScrut :: Exp -> Exp
 
- data TypegenInfo = TypegenInfo {}
- genTypes :: [(TConId, TypeDef)] -> Pass ([Definition], TypegenInfo)
Documentation
Information and codegen handlers associated with each data constructor.
Constructors
| DConInfo | |
| Fields 
 | |
Information and codegen handlers associated with each type constructor.
Constructors
| TConInfo | |
| Fields 
 | |
data TypegenInfo Source #
Type-related information, abstracted behind partial lookup functions.