Module
Control.Monad.Identity.Trans
- Package
- purescript-transformers
- Repository
- purescript/purescript-transformers
#IdentityT Source
newtype IdentityT :: forall k. (k -> Type) -> k -> Type
newtype IdentityT m a
The IdentityT
monad transformer.
This monad acts like a placeholder for functions that take a monad
transformer as an argument, similar to identity
for functions and
Identity
for monads.
Constructors
IdentityT (m a)
Instances
(Eq1 m, Eq a) => Eq (IdentityT m a)
(Ord1 m, Ord a) => Ord (IdentityT m a)
(Eq1 m) => Eq1 (IdentityT m)
(Ord1 m) => Ord1 (IdentityT m)
Newtype (IdentityT m a) _
(Functor m) => Functor (IdentityT m)
(Apply m) => Apply (IdentityT m)
(Applicative m) => Applicative (IdentityT m)
(Alt m) => Alt (IdentityT m)
(Plus m) => Plus (IdentityT m)
(Alternative m) => Alternative (IdentityT m)
(Bind m) => Bind (IdentityT m)
(Monad m) => Monad (IdentityT m)
(MonadRec m) => MonadRec (IdentityT m)
(MonadPlus m) => MonadPlus (IdentityT m)
MonadTrans IdentityT
(MonadEffect m) => MonadEffect (IdentityT m)
(MonadCont m) => MonadCont (IdentityT m)
(MonadThrow e m) => MonadThrow e (IdentityT m)
(MonadError e m) => MonadError e (IdentityT m)
(MonadAsk r m) => MonadAsk r (IdentityT m)
(MonadReader r m) => MonadReader r (IdentityT m)
(MonadState s m) => MonadState s (IdentityT m)
(MonadTell w m) => MonadTell w (IdentityT m)
(MonadWriter w m) => MonadWriter w (IdentityT m)
(Foldable m) => Foldable (IdentityT m)
(Traversable m) => Traversable (IdentityT m)
#runIdentityT Source
runIdentityT :: forall m a. IdentityT m a -> m a
Run a computation in the IdentityT
monad.
#mapIdentityT Source
mapIdentityT :: forall m1 m2 a b. (m1 a -> m2 b) -> IdentityT m1 a -> IdentityT m2 b
Change the result type of a IdentityT
monad action.
- Modules
- Control.
Comonad. Env - Control.
Comonad. Env. Class - Control.
Comonad. Env. Trans - Control.
Comonad. Store - Control.
Comonad. Store. Class - Control.
Comonad. Store. Trans - Control.
Comonad. Traced - Control.
Comonad. Traced. Class - Control.
Comonad. Traced. Trans - Control.
Comonad. Trans. Class - Control.
Monad. Cont - Control.
Monad. Cont. Class - Control.
Monad. Cont. Trans - Control.
Monad. Error. Class - Control.
Monad. Except - Control.
Monad. Except. Trans - Control.
Monad. Identity. Trans - Control.
Monad. List. Trans - Control.
Monad. Maybe. Trans - Control.
Monad. RWS - Control.
Monad. RWS. Trans - Control.
Monad. Reader - Control.
Monad. Reader. Class - Control.
Monad. Reader. Trans - Control.
Monad. State - Control.
Monad. State. Class - Control.
Monad. State. Trans - Control.
Monad. Trans. Class - Control.
Monad. Writer - Control.
Monad. Writer. Class - Control.
Monad. Writer. Trans