Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module generates code for "externs" files, i.e. files containing only foreign import declarations.
- data ExternsFile = ExternsFile {}
- data ExternsImport = ExternsImport {}
- data ExternsFixity = ExternsFixity {}
- data ExternsTypeFixity = ExternsTypeFixity {}
- data ExternsDeclaration
- = EDType { }
- | EDTypeSynonym { }
- | EDDataConstructor { }
- | EDValue {
- edValueName :: Ident
- edValueType :: Type
- | EDClass { }
- | EDInstance { }
- | EDKind { }
- moduleToExternsFile :: Module -> Environment -> ExternsFile
- applyExternsFileToEnvironment :: ExternsFile -> Environment -> Environment
Documentation
data ExternsFile Source #
The data which will be serialized to an externs file
ExternsFile | |
|
data ExternsImport Source #
A module import in an externs file
ExternsImport | |
|
data ExternsFixity Source #
A fixity declaration in an externs file
ExternsFixity | |
|
data ExternsTypeFixity Source #
A type fixity declaration in an externs file
ExternsTypeFixity | |
|
data ExternsDeclaration Source #
A type or value declaration appearing in an externs file
EDType | A type declaration |
EDTypeSynonym | A type synonym |
EDDataConstructor | A data construtor |
EDValue | A value declaration |
| |
EDClass | A type class declaration |
| |
EDInstance | An instance declaration |
EDKind | A kind declaration |
moduleToExternsFile :: Module -> Environment -> ExternsFile Source #
Generate an externs file for all declarations in a module
applyExternsFileToEnvironment :: ExternsFile -> Environment -> Environment Source #
Convert an externs file back into a module