Safe Haskell | None |
---|---|
Language | Haskell2010 |
Lower level building blocks for custom code generation.
- data Ghc a :: * -> *
- type PkgKey = UnitId
- liftIO :: MonadIO m => forall a. IO a -> m a
- toSimplifiedStg :: ModSummary -> CgGuts -> CompPipeline [StgBinding]
- toModMetadata :: CompConfig -> ModSummary -> ModMetadata
- modulePkgKey :: Module -> PkgKey
- pkgKeyString :: PkgKey -> String
Documentation
Synonym for UnitId
, to bridge a slight incompatibility between
GHC 7.87.108.0.
toSimplifiedStg :: ModSummary -> CgGuts -> CompPipeline [StgBinding] Source #
Compile a ModSummary
into a list of simplified StgBinding
s.
See https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/StgSynType
for more information about STG and how it relates to core and Haskell.
toModMetadata :: CompConfig -> ModSummary -> ModMetadata Source #
Build a ModMetadata
out of a ModSummary
.
modulePkgKey :: Module -> PkgKey Source #
Package ID/key of a module.
pkgKeyString :: PkgKey -> String Source #
String representation of a package ID/key.