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

Safe HaskellNone
LanguageHaskell2010

HIE.Bios

Contents

Description

The HIE Bios

Synopsis

Initialise a session

data Cradle Source #

The environment where this library is used.

Constructors

Cradle 

Fields

Instances
Show Cradle Source # 
Instance details

Defined in HIE.Bios.Types

initializeFlagsWithCradleWithMessage :: GhcMonad m => Maybe Messager -> FilePath -> Cradle -> m () Source #

Initialize the DynFlags relating to the compilation of a single file or GHC session according to the Cradle and Options provided.

Load a module into a session

loadFileWithMessage Source #

Arguments

:: GhcMonad m 
=> Maybe Messager 
-> (FilePath, FilePath)

A target file.

-> m (Maybe TypecheckedModule, [TypecheckedModule]) 

Obtaining type of a target expression. (GHCi's type:)

Eliminate a session to IO

withGhcT :: (ExceptionMonad m, MonadIO m, Monad m) => GhcT m a -> m a Source #