Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Effect.Error
Contents
Documentation
data MonadErrorEffect (e :: Type) :: Effect where Source #
Constructors
ThrowError :: forall (e :: Type) (m :: Type -> Type) (a :: Type). e -> MonadErrorEffect e m a | |
CatchError :: forall (e :: Type) (m :: Type -> Type) (a :: Type). (m a) -> (e -> m a) -> MonadErrorEffect e m a |
Instances
MonadError e m => InterpretEffectStateful x m (MonadErrorEffect e) Source # | A "passthough" instance for |
Defined in Effect.Error.Passthrough Methods interpretEffectStateful :: forall (ops :: [Effect]) x0 a. (forall b y. x y -> AST ops b -> m (b, x y)) -> x x0 -> MonadErrorEffect e (AST ops) a -> m (a, x x0) Source # | |
((), MonadError e m) => InterpretEffect m (MonadErrorEffect e) Source # | |
Defined in Effect.Error Methods interpretEffect :: forall (ops :: [Effect]) a. (forall b. AST ops b -> m b) -> MonadErrorEffect e (AST ops) a -> m a Source # |
Orphan instances
((), EffectInject (MonadErrorEffect e) ops) => MonadError e (AST ops) Source # | |