Safe Haskell | None |
---|---|
Language | Haskell2010 |
- runGmOutT :: IOish m => Options -> GmOutT m a -> m a
- runGmOutT' :: IOish m => GhcModOut -> GmOutT m a -> m a
- runGhcModT :: (IOish m, GmOut m) => Options -> GhcModT m a -> m (Either GhcModError a, GhcModLog)
- runGhcModT' :: IOish m => GhcModEnv -> GhcModState -> GhcModT m a -> GmOutT m (Either GhcModError (a, GhcModState), GhcModLog)
- hoistGhcModT :: IOish m => (Either GhcModError a, GhcModLog) -> GhcModT m a
- runGmlT :: IOish m => [Either FilePath ModuleName] -> GmlT m a -> GhcModT m a
- runGmlT' :: IOish m => [Either FilePath ModuleName] -> (DynFlags -> Ghc DynFlags) -> GmlT m a -> GhcModT m a
- runGmlTWith :: IOish m => [Either FilePath ModuleName] -> (DynFlags -> Ghc DynFlags) -> (GmlT m a -> GmlT m b) -> GmlT m a -> GhcModT m b
- runGmPkgGhc :: (IOish m, Gm m) => LightGhc a -> m a
- withGhcModEnv :: (IOish m, GmOut m) => FilePath -> Options -> (GhcModEnv -> m a) -> m a
- withGhcModEnv' :: (IOish m, GmOut m) => (FilePath -> (Cradle -> m a) -> m a) -> FilePath -> Options -> (GhcModEnv -> m a) -> m a
- module Language.Haskell.GhcMod.Monad.Types
Documentation
runGmOutT' :: IOish m => GhcModOut -> GmOutT m a -> m a Source
runGhcModT :: (IOish m, GmOut m) => Options -> GhcModT m a -> m (Either GhcModError a, GhcModLog) Source
Run a GhcModT m
computation.
runGhcModT' :: IOish m => GhcModEnv -> GhcModState -> GhcModT m a -> GmOutT m (Either GhcModError (a, GhcModState), GhcModLog) Source
Run a computation inside GhcModT
providing the RWST environment and
initial state. This is a low level function, use it only if you know what to
do with GhcModEnv
and GhcModState
.
You should probably look at runGhcModT
instead.
hoistGhcModT :: IOish m => (Either GhcModError a, GhcModLog) -> GhcModT m a Source
hoistGhcModT result
. Embed a GhcModT computation's result into a GhcModT
computation. Note that if the computation that returned result
modified the
state part of GhcModT this cannot be restored.
runGmlT' :: IOish m => [Either FilePath ModuleName] -> (DynFlags -> Ghc DynFlags) -> GmlT m a -> GhcModT m a Source
runGmlTWith :: IOish m => [Either FilePath ModuleName] -> (DynFlags -> Ghc DynFlags) -> (GmlT m a -> GmlT m b) -> GmlT m a -> GhcModT m b Source
runGmPkgGhc :: (IOish m, Gm m) => LightGhc a -> m a Source