transformers-0.1.4.0: Concrete monad transformersSource codeContentsIndex
Control.Monad.Trans.Identity
Portabilityportable
Stabilityexperimental
Maintainerlibraries@haskell.org
Contents
The identity monad transformer
Lifting other operations
Description
Declaration of the identity monad transformer.
Synopsis
newtype IdentityT m a = IdentityT {
runIdentityT :: m a
}
mapIdentityT :: (m a -> n b) -> IdentityT m a -> IdentityT n b
liftCatch :: (m a -> (e -> m a) -> m a) -> IdentityT m a -> (e -> IdentityT m a) -> IdentityT m a
liftCallCC :: (((a -> m b) -> m a) -> m a) -> ((a -> IdentityT m b) -> IdentityT m a) -> IdentityT m a
The identity monad transformer
newtype IdentityT m a Source
Constructors
IdentityT
runIdentityT :: m a
show/hide Instances
mapIdentityT :: (m a -> n b) -> IdentityT m a -> IdentityT n bSource
Lift a unary operation to the new monad.
Lifting other operations
liftCatch :: (m a -> (e -> m a) -> m a) -> IdentityT m a -> (e -> IdentityT m a) -> IdentityT m aSource
Lift a catchError operation to the new monad.
liftCallCC :: (((a -> m b) -> m a) -> m a) -> ((a -> IdentityT m b) -> IdentityT m a) -> IdentityT m aSource
Lift a callCC operation to the new monad.
Produced by Haddock version 2.4.2