comonad-5.0.8: Comonads
Copyright (C) 2008-2011 Edward Kmett
License BSD-style (see the file LICENSE)
Maintainer Edward Kmett <ekmett@gmail.com>
Stability provisional
Portability portable
Safe Haskell Safe
Language Haskell2010

Control.Comonad.Trans.Identity

Description

Synopsis

Documentation

newtype IdentityT (f :: k -> Type ) (a :: k) Source #

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

Constructors

IdentityT

Fields

Instances

Instances details
FunctorWithIndex i m => FunctorWithIndex i ( IdentityT m)
Instance details

Defined in WithIndex

Methods

imap :: (i -> a -> b) -> IdentityT m a -> IdentityT m b Source #

FoldableWithIndex i m => FoldableWithIndex i ( IdentityT m)
Instance details

Defined in WithIndex

Methods

ifoldMap :: Monoid m0 => (i -> a -> m0) -> IdentityT m a -> m0 Source #

ifoldMap' :: Monoid m0 => (i -> a -> m0) -> IdentityT m a -> m0 Source #

ifoldr :: (i -> a -> b -> b) -> b -> IdentityT m a -> b Source #

ifoldl :: (i -> b -> a -> b) -> b -> IdentityT m a -> b Source #

ifoldr' :: (i -> a -> b -> b) -> b -> IdentityT m a -> b Source #

ifoldl' :: (i -> b -> a -> b) -> b -> IdentityT m a -> b Source #

TraversableWithIndex i m => TraversableWithIndex i ( IdentityT m)
Instance details

Defined in WithIndex

Methods

itraverse :: Applicative f => (i -> a -> f b) -> IdentityT m a -> f ( IdentityT m b) Source #

ComonadTraced m w => ComonadTraced m ( IdentityT w) Source #
Instance details

Defined in Control.Comonad.Traced.Class

Methods

trace :: m -> IdentityT w a -> a Source #

ComonadStore s w => ComonadStore s ( IdentityT w) Source #
Instance details

Defined in Control.Comonad.Store.Class

ComonadEnv e w => ComonadEnv e ( IdentityT w) Source #
Instance details

Defined in Control.Comonad.Env.Class

MonadTrans ( IdentityT :: ( Type -> Type ) -> Type -> Type )
Instance details

Defined in Control.Monad.Trans.Identity

ComonadHoist ( IdentityT :: ( Type -> Type ) -> Type -> Type ) Source #
Instance details

Defined in Control.Comonad.Hoist.Class

Methods

cohoist :: ( Comonad w, Comonad v) => ( forall x. w x -> v x) -> IdentityT w a -> IdentityT v a Source #

ComonadTrans ( IdentityT :: ( Type -> Type ) -> Type -> Type ) Source #
Instance details

Defined in Control.Comonad.Trans.Class

Monad m => Monad ( IdentityT m)
Instance details

Defined in Control.Monad.Trans.Identity

Functor m => Functor ( IdentityT m)
Instance details

Defined in Control.Monad.Trans.Identity

MonadFix m => MonadFix ( IdentityT m)
Instance details

Defined in Control.Monad.Trans.Identity

MonadFail m => MonadFail ( IdentityT m)
Instance details

Defined in Control.Monad.Trans.Identity

Applicative m => Applicative ( IdentityT m)
Instance details

Defined in Control.Monad.Trans.Identity

Foldable f => Foldable ( IdentityT f)
Instance details

Defined in Control.Monad.Trans.Identity

Traversable f => Traversable ( IdentityT f)
Instance details

Defined in Control.Monad.Trans.Identity

Contravariant f => Contravariant ( IdentityT f)
Instance details

Defined in Control.Monad.Trans.Identity

Eq1 f => Eq1 ( IdentityT f)
Instance details

Defined in Control.Monad.Trans.Identity

Ord1 f => Ord1 ( IdentityT f)
Instance details

Defined in Control.Monad.Trans.Identity

Read1 f => Read1 ( IdentityT f)
Instance details

Defined in Control.Monad.Trans.Identity

Show1 f => Show1 ( IdentityT f)
Instance details

Defined in Control.Monad.Trans.Identity

MonadZip m => MonadZip ( IdentityT m)
Instance details

Defined in Control.Monad.Trans.Identity

MonadIO m => MonadIO ( IdentityT m)
Instance details

Defined in Control.Monad.Trans.Identity

Alternative m => Alternative ( IdentityT m)
Instance details

Defined in Control.Monad.Trans.Identity

MonadPlus m => MonadPlus ( IdentityT m)
Instance details

Defined in Control.Monad.Trans.Identity

Distributive g => Distributive ( IdentityT g)
Instance details

Defined in Data.Distributive

ComonadApply w => ComonadApply ( IdentityT w) Source #
Instance details

Defined in Control.Comonad

Comonad w => Comonad ( IdentityT w) Source #
Instance details

Defined in Control.Comonad

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

Defined in Control.Monad.Trans.Identity

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

Defined in Control.Monad.Trans.Identity

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

Defined in Control.Monad.Trans.Identity

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

Defined in Control.Monad.Trans.Identity