transformers-0.6.1.0: Concrete functor and monad transformers
Copyright(c) Ross Paterson 2012
LicenseBSD-style (see the file LICENSE)
MaintainerR.Paterson@city.ac.uk
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Control.Monad.Signatures

Description

Signatures for monad operations that require specialized lifting. Each signature has a uniformity property that the lifting should satisfy.

Synopsis

Documentation

type CallCC (m :: Type -> Type) a b = ((a -> m b) -> m a) -> m a Source #

Signature of the callCC operation, introduced in Control.Monad.Trans.Cont. Any lifting function liftCallCC should satisfy

  • lift (f k) = f' (lift . k) => lift (cf f) = liftCallCC cf f'

type Catch e (m :: k -> Type) (a :: k) = m a -> (e -> m a) -> m a Source #

Signature of the catchE operation, introduced in Control.Monad.Trans.Except. Any lifting function liftCatch should satisfy

type Listen w (m :: Type -> Type) a = m a -> m (a, w) Source #

Signature of the listen operation, introduced in Control.Monad.Trans.Writer. Any lifting function liftListen should satisfy

type Pass w (m :: Type -> Type) a = m (a, w -> w) -> m a Source #

Signature of the pass operation, introduced in Control.Monad.Trans.Writer. Any lifting function liftPass should satisfy