Safe Haskell | None |
---|---|
Language | Haskell98 |
Ghc compatibility layer.
- withInitializedPackages :: [String] -> Ghc a -> IO a
- findIdentifier :: ModuleName -> Identifier -> Ghc (Maybe Id)
- makeModuleName :: String -> ModuleName
- run :: Ghc a -> IO a
- showppr :: Outputable a => DynFlags -> a -> String
- showSDocForUser :: DynFlags -> PrintUnqualified -> SDoc -> String
- setImportContext :: ModuleName -> Ghc ()
- showPackageName :: PkgID -> String
GHC actions
withInitializedPackages :: [String] -> Ghc a -> IO a Source #
Run an action with an initialized GHC package set.
findIdentifier :: ModuleName -> Identifier -> Ghc (Maybe Id) Source #
Get the type of the given identifier from the given module.
makeModuleName :: String -> ModuleName Source #
Make a module name.
Internal functions
showSDocForUser :: DynFlags -> PrintUnqualified -> SDoc -> String Source #
Wraps showSDocForUser
.
setImportContext :: ModuleName -> Ghc () Source #
Set the import context.
showPackageName :: PkgID -> String Source #
Show the package name e.g. base.