zeolite-lang-0.18.1.0: Zeolite is a statically-typed, general-purpose programming language.
Safe HaskellSafe
LanguageHaskell2010

Base.CompilerError

Documentation

class ErrorContextM m => CollectErrorsM m where Source #

Methods

collectAllM :: Foldable f => f (m a) -> m [a] Source #

collectAnyM :: Foldable f => f (m a) -> m [a] Source #

collectFirstM :: Foldable f => f (m a) -> m a Source #

Instances

Instances details
Monad m => CollectErrorsM (TrackedErrorsT m) Source # 
Instance details

Defined in Base.TrackedErrors

class (Monad m, MonadFail m) => ErrorContextM m where Source #

Minimal complete definition

compilerErrorM

class MonadTrans t => ErrorContextT t where Source #

Minimal complete definition

isCompilerErrorT, ifElseSuccessT

Methods

isCompilerErrorT :: (Monad m, ErrorContextM (t m)) => t m a -> m Bool Source #

isCompilerSuccessT :: (Monad m, ErrorContextM (t m)) => t m a -> m Bool Source #

ifElseSuccessT :: (Monad m, ErrorContextM (t m)) => t m a -> m () -> m () -> t m a Source #

(<??) :: ErrorContextM m => m a -> String -> m a infixl 1 Source #

(??>) :: ErrorContextM m => String -> m a -> m a infixr 1 Source #

(<!!) :: ErrorContextM m => m a -> String -> m a infixl 1 Source #

(!!>) :: ErrorContextM m => String -> m a -> m a infixr 1 Source #

collectAllM_ :: (Foldable f, CollectErrorsM m) => f (m a) -> m () Source #

collectFirstM_ :: (Foldable f, CollectErrorsM m) => f (m a) -> m () Source #

errorFromIO :: (MonadIO m, ErrorContextM m) => IO a -> m a Source #

mapCompilerM :: CollectErrorsM m => (a -> m b) -> [a] -> m [b] Source #

mapCompilerM_ :: CollectErrorsM m => (a -> m b) -> [a] -> m () Source #