Copyright | (c) 2007 Magnus Therning |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | [email protected] |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell98 |
The identity monad transformer.
This is useful for functions parameterized by a monad transformer.
The trivial monad transformer, which maps a monad to an equivalent monad.
IdentityT | |
Fields
|
mapIdentityT :: (m a -> n b) -> IdentityT m a -> IdentityT n b Source
Lift a unary operation to the new monad.
liftCatch :: Catch e m a -> Catch e (IdentityT m) a Source
Lift a catchE
operation to the new monad.
liftCallCC :: CallCC m a b -> CallCC (IdentityT m) a b Source
Lift a callCC
operation to the new monad.
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/8.8.3/docs/html/libraries/transformers-0.5.6.2/Control-Monad-Trans-Identity.html