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

Safe HaskellNone
LanguageHaskell2010

HIE.Bios

Contents

Description

The HIE Bios

Synopsis

Find and load a Cradle

data Cradle Source #

The environment where this library is used.

Constructors

Cradle 

Fields

Instances
Show Cradle Source # 
Instance details

Defined in HIE.Bios.Types

findCradle :: FilePath -> IO (Maybe FilePath) Source #

Given rootfoobar.hs, return root/hie.yaml, or wherever the yaml file was found

loadCradle :: FilePath -> IO Cradle Source #

Given root/hie.yaml load the Cradle

loadImplicitCradle :: FilePath -> IO Cradle Source #

Given rootfoobar.hs, load an implicit cradle

Compiler Options

data CompilerOptions Source #

Option information for GHC

Constructors

CompilerOptions 

Fields

getCompilerOptions :: FilePath -> Cradle -> IO (Either CradleError CompilerOptions) Source #

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

Initialise session