hie-bios-0.3.0: Set up a GHC API session

Safe HaskellNone
LanguageHaskell2010

HIE.Bios.Environment

Synopsis

Documentation

initSession :: GhcMonad m => ComponentOptions -> m [Target] Source #

Start a GHC session and set some sensible options for tooling to use. Creates a folder in the cache directory to cache interface files to make reloading faster.

getSystemLibDir :: IO (Maybe FilePath) Source #

Obtain the directory for system libraries.

addCmdOpts :: GhcMonad m => [String] -> DynFlags -> m (DynFlags, [Target]) Source #

Interpret and set the specific command line options. A lot of this code is just copied from ghc/Main.hs It would be good to move this code into a library module so we can just use it rather than copy it.