haskell-docs-4.2.4: A program to find and display the docs and type of a name

Safe HaskellNone
LanguageHaskell98

Haskell.Docs.Ghc

Contents

Description

Ghc compatibility layer.

Synopsis

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

run :: Ghc a -> IO a Source

Run the given GHC action.

showppr :: Outputable a => DynFlags -> a -> String Source

Pretty print something to string.

setImportContext :: ModuleName -> Ghc () Source

Set the import context.

showPackageName :: PackageIdentifier -> String Source

Show the package name e.g. base.