Community
Modules 24

Control.Monad.Trans.Identity

experimental

The identity monad transformer.

This is useful for functions parameterized by a monad transformer.

The identity monad transformer

newtype IdentityT f a

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

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

Lift a unary operation to the new monad.

Lifting other operations

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

Lift a catchE operation to the new monad.

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

Lift a callCC operation to the new monad.

Instances

24
  • instance (Generic f, Generic a) => Generic (IdentityT f a)
  • instance (Generic1 f, Generic1 a) => Generic1 (IdentityT f a)
  • instance (Eq1 f) => Eq1 (IdentityT f)
  • instance (Ord1 f) => Ord1 (IdentityT f)
  • instance (Read1 f) => Read1 (IdentityT f)
  • instance (Show1 f) => Show1 (IdentityT f)
  • instance (Eq1 f, Eq a) => Eq (IdentityT f a)
  • instance (Ord1 f, Ord a) => Ord (IdentityT f a)
  • instance (Read1 f, Read a) => Read (IdentityT f a)
  • instance (Show1 f, Show a) => Show (IdentityT f a)
  • instance (Functor m) => Functor (IdentityT m)
  • instance (Foldable f) => Foldable (IdentityT f)
  • instance (Foldable1 m) => Foldable1 (IdentityT m)
  • instance (Traversable f) => Traversable (IdentityT f)
  • instance (Applicative m) => Applicative (IdentityT m)
  • instance (Alternative m) => Alternative (IdentityT m)
  • instance (Monad m) => Monad (IdentityT m)
  • instance (Fail.MonadFail m) => Fail.MonadFail (IdentityT m)
  • instance (MonadPlus m) => MonadPlus (IdentityT m)
  • instance (MonadFix m) => MonadFix (IdentityT m)
  • instance (MonadIO m) => MonadIO (IdentityT m)
  • instance (MonadZip m) => MonadZip (IdentityT m)
  • instance MonadTrans IdentityT
  • instance (Contravariant f) => Contravariant (IdentityT f)
Maintainer
R.Paterson@city.ac.uk
Portability
portable
Copyright
(c) 2007 Magnus Therning
License
BSD-style (see the file LICENSE)
Build record and source files

Community contribution. The service has not verified this documentation.

Target: Linux on x86-64. Some inferred types and resolved links are not available.

Generator: aihc-haddock-858b1951-web-1

Metadata snapshot: ac77ab7d2b1e88487eeab41661abedb7bfb8bc846deb92e7874c08d166bff65d

Open the dependency plan · Download the documentation model

Import a package

Enter a package name and an exact version from Hackage. The site contains imported versions only.