ether-0.3.0.0: Monad transformers and classes

Safe HaskellNone
LanguageHaskell2010

Control.Monad.Ether.Except.Class

Description

Synopsis

Documentation

class Monad m => MonadExcept tag e m | m tag -> e where Source

Methods

throw :: proxy tag -> e -> m a Source

Is used within a monadic computation to begin exception processing.

catch :: proxy tag -> m a -> (e -> m a) -> m a Source

A handler function to handle previous exceptions and return to normal execution.

Instances

(LiftCatch t, Monad (t m), MonadExcept tag e m) => MonadExcept tag e (t m) 
MonadExcept tag e m => MonadExcept tag e (WrappedEther tag' m) 
Monad m => MonadExcept tag e (ExceptT tag e m)