Safe Haskell | None |
---|
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 :: PackageIdentifier -> String
GHC actions
withInitializedPackages :: [String] -> Ghc a -> IO aSource
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 -> ModuleNameSource
Make a module name.
Internal functions
showppr :: Outputable a => DynFlags -> a -> StringSource
Pretty print something to string.
showSDocForUser :: DynFlags -> PrintUnqualified -> SDoc -> StringSource
Wraps showSDocForUser
.
setImportContext :: ModuleName -> Ghc ()Source
Set the import context.
showPackageName :: PackageIdentifier -> StringSource
Show the package name e.g. base.