ghc-mod-5.5.0.0: Happy Haskell Programming

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.GhcMod.Target

Synopsis

Documentation

runGmPkgGhc :: (IOish m, Gm m) => LightGhc a -> m a Source

dropSession :: IOish m => GhcModT m () Source

Drop the currently active GHC session, the next that requires a GHC session will initialize a new one.

runGmlT :: IOish m => [Either FilePath ModuleName] -> GmlT m a -> GhcModT m a Source

Run a GmlT action (i.e. a function in the GhcMonad) in the context of certain files or modules

runGmlT' :: IOish m => [Either FilePath ModuleName] -> (DynFlags -> Ghc DynFlags) -> GmlT m a -> GhcModT m a Source

Run a GmlT action (i.e. a function in the GhcMonad) in the context of certain files or modules, with updated GHC flags

runGmlTWith :: IOish m => [Either FilePath ModuleName] -> (DynFlags -> Ghc DynFlags) -> (GmlT m a -> GmlT m b) -> GmlT m a -> GhcModT m b Source

Run a GmlT action (i.e. a function in the GhcMonad) in the context of certain files or modules, with updated GHC flags and a final transformation

loadTargets :: IOish m => [GHCOption] -> [FilePath] -> GmlT m () Source

Set the files as targets and load them.