transformers-0.5.6.2: Concrete functor and monad transformers
Copyright (c) 2007 Magnus Therning
License BSD-style (see the file LICENSE)
Maintainer R.Paterson@city.ac.uk
Stability experimental
Portability portable
Safe Haskell Safe
Language Haskell98

Control.Monad.Trans.Identity

Description

The identity monad transformer.

This is useful for functions parameterized by a monad transformer.

Synopsis

The identity monad transformer

newtype IdentityT f a Source #

The trivial monad transformer, which maps a monad to an equivalent monad.

Constructors

IdentityT

Fields

Instances

Instances details
MonadTrans ( IdentityT :: ( Type -> Type ) -> Type -> Type ) Source #
Instance details

Defined in Control.Monad.Trans.Identity

Monad m => Monad ( IdentityT m) Source #
Instance details

Defined in Control.Monad.Trans.Identity

Functor m => Functor ( IdentityT m) Source #
Instance details

Defined in Control.Monad.Trans.Identity

MonadFix m => MonadFix ( IdentityT m) Source #
Instance details

Defined in Control.Monad.Trans.Identity

MonadFail m => MonadFail ( IdentityT m) Source #
Instance details

Defined in Control.Monad.Trans.Identity

Applicative m => Applicative ( IdentityT m) Source #
Instance details

Defined in Control.Monad.Trans.Identity

Foldable f => Foldable ( IdentityT f) Source #
Instance details

Defined in Control.Monad.Trans.Identity

Traversable f => Traversable ( IdentityT f) Source #
Instance details

Defined in Control.Monad.Trans.Identity

Contravariant f => Contravariant ( IdentityT f) Source #
Instance details

Defined in Control.Monad.Trans.Identity

Eq1 f => Eq1 ( IdentityT f) Source #
Instance details

Defined in Control.Monad.Trans.Identity

Ord1 f => Ord1 ( IdentityT f) Source #
Instance details

Defined in Control.Monad.Trans.Identity

Read1 f => Read1 ( IdentityT f) Source #
Instance details

Defined in Control.Monad.Trans.Identity

Show1 f => Show1 ( IdentityT f) Source #
Instance details

Defined in Control.Monad.Trans.Identity

MonadZip m => MonadZip ( IdentityT m) Source #
Instance details

Defined in Control.Monad.Trans.Identity

MonadIO m => MonadIO ( IdentityT m) Source #
Instance details

Defined in Control.Monad.Trans.Identity

Alternative m => Alternative ( IdentityT m) Source #
Instance details

Defined in Control.Monad.Trans.Identity

MonadPlus m => MonadPlus ( IdentityT m) Source #
Instance details

Defined in Control.Monad.Trans.Identity

( Eq1 f, Eq a) => Eq ( IdentityT f a) Source #
Instance details

Defined in Control.Monad.Trans.Identity

( Ord1 f, Ord a) => Ord ( IdentityT f a) Source #
Instance details

Defined in Control.Monad.Trans.Identity

( Read1 f, Read a) => Read ( IdentityT f a) Source #
Instance details

Defined in Control.Monad.Trans.Identity

( Show1 f, Show a) => Show ( IdentityT f a) Source #
Instance details

Defined in Control.Monad.Trans.Identity

mapIdentityT :: (m a -> n b) -> IdentityT m a -> IdentityT n b Source #

Lift a unary operation to the new monad.

Lifting other operations

liftCatch :: Catch e m a -> Catch e ( IdentityT m) a Source #

Lift a catchE operation to the new monad.

liftCallCC :: CallCC m a b -> CallCC ( IdentityT m) a b Source #

Lift a callCC operation to the new monad.