| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Control.Monad.Ology.Specific.IdentityT
Contents
Synopsis
- newtype IdentityT (f :: k -> Type) (a :: k) = IdentityT {
- runIdentityT :: f a
- mapIdentityT :: forall {k1} {k2} m (a :: k1) n (b :: k2). (m a -> n b) -> IdentityT m a -> IdentityT n b
- identityWUnlift :: forall (c :: (Type -> Type) -> Constraint). WUnlift c (IdentityT :: (Type -> Type) -> Type -> Type)
Documentation
newtype IdentityT (f :: k -> Type) (a :: k) #
The trivial monad transformer, which maps a monad to an equivalent monad.
Constructors
| IdentityT | |
Fields
| |
Instances
mapIdentityT :: forall {k1} {k2} m (a :: k1) n (b :: k2). (m a -> n b) -> IdentityT m a -> IdentityT n b #
Lift a unary operation to the new monad.
identityWUnlift :: forall (c :: (Type -> Type) -> Constraint). WUnlift c (IdentityT :: (Type -> Type) -> Type -> Type) Source #
Orphan instances
| TransConstraint MonadFail (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
| TransConstraint MonadFix (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
| TransConstraint MonadIO (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
| TransConstraint Applicative (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
Methods hasTransConstraint :: forall (m :: Type -> Type). Applicative m => Dict (Applicative (IdentityT m)) Source # | |
| TransConstraint Functor (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
| TransConstraint Monad (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
| TransConstraint MonadPlus (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
| TransConstraint MonadException (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
Methods hasTransConstraint :: forall (m :: Type -> Type). MonadException m => Dict (MonadException (IdentityT m)) Source # | |
| TransConstraint MonadExtract (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
Methods hasTransConstraint :: forall (m :: Type -> Type). MonadExtract m => Dict (MonadExtract (IdentityT m)) Source # | |
| TransConstraint MonadIdentity (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
Methods hasTransConstraint :: forall (m :: Type -> Type). MonadIdentity m => Dict (MonadIdentity (IdentityT m)) Source # | |
| TransConstraint MonadInner (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
Methods hasTransConstraint :: forall (m :: Type -> Type). MonadInner m => Dict (MonadInner (IdentityT m)) Source # | |
| TransConstraint MonadOuter (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
Methods hasTransConstraint :: forall (m :: Type -> Type). MonadOuter m => Dict (MonadOuter (IdentityT m)) Source # | |
| MonadCatch e m => MonadCatch e (IdentityT m) Source # | |
| MonadThrow e m => MonadThrow e (IdentityT m) Source # | |
| MonadTransAskUnlift (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
| MonadTransCoerce (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
| MonadTransHoist (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
| MonadTransTunnel (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
| MonadTransUnlift (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
| TransConstraint (MonadCatch e) (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
Methods hasTransConstraint :: forall (m :: Type -> Type). MonadCatch e m => Dict (MonadCatch e (IdentityT m)) Source # | |
| TransConstraint (MonadThrow e) (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
Methods hasTransConstraint :: forall (m :: Type -> Type). MonadThrow e m => Dict (MonadThrow e (IdentityT m)) Source # | |
| MonadException m => MonadException (IdentityT m) Source # | |
| MonadExtract m => MonadExtract (IdentityT m) Source # | |
| MonadIdentity m => MonadIdentity (IdentityT m) Source # | |
| MonadInner m => MonadInner (IdentityT m) Source # | |
| MonadOuter m => MonadOuter (IdentityT m) Source # | |