Hoogle Search
Within LTS Haskell 24.19 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapExceptT :: (m (Either e a) -> n (Either e' b)) -> ExceptT e m a -> ExceptT e' n btransformers Control.Monad.Trans.Except Map the unwrapped computation using the given function.
runExceptT (mapExceptT f m) = f (runExceptT m)
mapMaybeT :: (m (Maybe a) -> n (Maybe b)) -> MaybeT m a -> MaybeT n btransformers Control.Monad.Trans.Maybe Transform the computation inside a MaybeT.
mapRWS :: (Monoid w, Monoid w') => ((a, s, w) -> (b, s, w')) -> RWS r w s a -> RWS r w' s btransformers Control.Monad.Trans.RWS.CPS Map the return value, final state and output of a computation using the given function.
-
transformers Control.Monad.Trans.RWS.CPS Map the inner computation using the given function.
mapRWS :: ((a, s, w) -> (b, s, w')) -> RWS r w s a -> RWS r w' s btransformers Control.Monad.Trans.RWS.Lazy Map the return value, final state and output of a computation using the given function.
mapRWST :: (m (a, s, w) -> n (b, s, w')) -> RWST r w s m a -> RWST r w' s n btransformers Control.Monad.Trans.RWS.Lazy Map the inner computation using the given function.
mapRWS :: ((a, s, w) -> (b, s, w')) -> RWS r w s a -> RWS r w' s btransformers Control.Monad.Trans.RWS.Strict Map the return value, final state and output of a computation using the given function.
mapRWST :: (m (a, s, w) -> n (b, s, w')) -> RWST r w s m a -> RWST r w' s n btransformers Control.Monad.Trans.RWS.Strict Map the inner computation using the given function.
mapReader :: (a -> b) -> Reader r a -> Reader r btransformers Control.Monad.Trans.Reader Transform the value returned by a Reader.
mapReaderT :: (m a -> n b) -> ReaderT r m a -> ReaderT r n btransformers Control.Monad.Trans.Reader Transform the computation inside a ReaderT.
runReaderT (mapReaderT f m) = f . runReaderT m