Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data GhcModError Source
GMENoMsg | Unknown error |
GMEString String | Some Error with a message. These are produced mostly by
|
GMECabalConfigure GhcModError | Configuring a cabal project failed. |
GMEStackConfigure GhcModError | Configuring a stack project failed. |
GMEStackBootstrap GhcModError | Bootstrapping |
GMECabalCompAssignment [(Either FilePath ModuleName, Set ChComponentName)] | Could not find a consistent component assignment for modules |
GMEProcess String String [String] (Either Int GhcModError) | Launching an operating system process failed. Fields in order: function, command, arguments, (stdout, stderr, exitcode) |
GMENoCabalFile | No cabal file found. |
GMETooManyCabalFiles [FilePath] | Too many cabal files found. |
GMEWrongWorkingDirectory FilePath FilePath |
Eq GhcModError Source | |
Show GhcModError Source | |
Exception GhcModError Source | |
Error GhcModError Source | |
Monad m => MonadError GhcModError (GmlT m) | |
Monad m => MonadError GhcModError (GmT m) | |
GmEnv m => GmEnv (ErrorT GhcModError m) Source |
type GmError m = MonadError GhcModError m Source
gmeDoc :: GhcModError -> Doc Source
ghcExceptionDoc :: GhcException -> Doc Source
liftMaybe :: MonadError e m => e -> m (Maybe a) -> m a Source
overrideError :: MonadError e m => e -> m a -> m a Source
modifyError :: MonadError e m => (e -> e) -> m a -> m a Source
modifyError' :: MonadError e m => m a -> (e -> e) -> m a infixr 0 Source
modifyGmError :: (MonadIO m, ExceptionMonad m) => (GhcModError -> GhcModError) -> m a -> m a Source
tryFix :: MonadError e m => m a -> (e -> m ()) -> m a Source
gcatches :: (MonadIO m, ExceptionMonad m) => m a -> [GHandler m a] -> m a Source
module Control.Monad.Error
module Control.Exception