newtype IdentityT f a
The trivial monad transformer, which maps a monad to an equivalent monad.
The identity monad transformer.
This is useful for functions parameterized by a monad transformer.
newtype IdentityT f aThe trivial monad transformer, which maps a monad to an equivalent monad.
IdentityT :: f a -> IdentityT f arunIdentityT :: IdentityT f a -> f amapIdentityT :: (m a -> n b) -> IdentityT m a -> IdentityT n bLift a unary operation to the new monad.
liftCatch :: Catch e m a -> Catch e (IdentityT m) aLift a catchE operation to the new monad.
liftCallCC :: CallCC m a b -> CallCC (IdentityT m) a bLift a callCC operation to the new monad.
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 IdentityTinstance (Contravariant f) => Contravariant (IdentityT f)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