transformers-lift-0.1.0.1: Ad-hoc type classes for lifting

Safe HaskellSafe
LanguageHaskell2010

Control.Monad.Trans.Lift.Catch

Description

Lifting the catch operation.

Synopsis

Documentation

class MonadTrans t => LiftCatch t where Source

The class of monad transformers capable of lifting catch.

Methods

liftCatch :: Monad m => Catch e m (StT t a) -> Catch e (t m) a Source

Lift the catch operation. Should satisfy the uniformity property

type Catch e m a = m a -> (e -> m a) -> m a

Signature of the catchE operation, introduced in Control.Monad.Trans.Except.

defaultLiftCatch Source

Arguments

:: (Monad m, LiftCatch n) 
=> (forall x. n m x -> t m x)

Monad constructor

-> (forall o x. t o x -> n o x)

Monad deconstructor

-> Catch e m (StT n a) 
-> Catch e (t m) a 

Default definition for the liftCatch method.