Safe Haskell | None |
---|---|
Language | Haskell2010 |
The HIE Bios
Synopsis
- data Cradle = Cradle {}
- findCradle :: FilePath -> IO (Maybe FilePath)
- loadCradle :: FilePath -> IO Cradle
- loadImplicitCradle :: FilePath -> IO Cradle
- defaultCradle :: FilePath -> [FilePath] -> Cradle
- data CompilerOptions = CompilerOptions {
- ghcOptions :: [String]
- getCompilerOptions :: FilePath -> Cradle -> IO (Either CradleError CompilerOptions)
- initSession :: GhcMonad m => CompilerOptions -> m [Target]
Find and load a Cradle
The environment where this library is used.
Cradle | |
|
findCradle :: FilePath -> IO (Maybe FilePath) Source #
Given rootfoobar.hs, return root/hie.yaml, or wherever the yaml file was found
Compiler Options
data CompilerOptions Source #
Option information for GHC
CompilerOptions | |
|
Instances
Eq CompilerOptions Source # | |
Defined in HIE.Bios.Types (==) :: CompilerOptions -> CompilerOptions -> Bool # (/=) :: CompilerOptions -> CompilerOptions -> Bool # | |
Show CompilerOptions Source # | |
Defined in HIE.Bios.Types showsPrec :: Int -> CompilerOptions -> ShowS # show :: CompilerOptions -> String # showList :: [CompilerOptions] -> ShowS # |
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
initSession :: GhcMonad m => CompilerOptions -> m [Target] Source #