transformers-compat-0.4.0.3: A small compatibility shim exposing the new types from transformers 0.3 and 0.4 to older Haskell platforms.

Copyright(c) Ross Paterson 2012
LicenseBSD-style (see the file LICENSE)
Maintainerross@soi.city.ac.uk
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell98

Control.Monad.Signatures

Description

Signatures for monad operations that require specialized lifting.

Synopsis

Documentation

type CallCC m a b = ((a -> m b) -> m a) -> m a Source

Signature of the callCC operation, introduced in Control.Monad.Trans.Cont.

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

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

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

Signature of the listen operation, introduced in Control.Monad.Trans.Writer.

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

Signature of the pass operation, introduced in Control.Monad.Trans.Writer.