Safe Haskell | None |
---|---|
Language | Haskell2010 |
Lower level building blocks for custom code generation.
- data Ghc a :: * -> *
- type PkgKey = PackageKey
- liftIO :: MonadIO m => forall a. IO a -> m a
- toSimplifiedStg :: ModSummary -> CgGuts -> CompPipeline [StgBinding]
- toModMetadata :: CompConfig -> Bool -> [Target] -> ModSummary -> ModMetadata
- modulePkgKey :: Module -> PkgKey
- pkgKeyString :: PkgKey -> String
Documentation
data Ghc a :: * -> *
type PkgKey = PackageKey Source
Synonym for PackageKey
, to bridge a slight incompatibility between
GHC 7.8 and 7.10.
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 -> Bool -> [Target] -> ModSummary -> ModMetadata Source
Build a ModMetadata
out of scattered metadata.
modulePkgKey :: Module -> PkgKey Source
Package ID/key of a module.
pkgKeyString :: PkgKey -> String Source
String representation of a package ID/key.