Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapReaderT :: (m a -> n b) -> ReaderT r m a -> ReaderT r n bmtl Control.Monad.Reader Transform the computation inside a ReaderT.
runReaderT (mapReaderT f m) = f . runReaderT m
mapState :: ((a, s) -> (b, s)) -> State s a -> State s bmtl Control.Monad.State.Lazy Map both the return value and final state of a computation using the given function.
mapStateT :: (m (a, s) -> n (b, s)) -> StateT s m a -> StateT s n bmtl Control.Monad.State.Lazy Map both the return value and final state of a computation using the given function.
mapState :: ((a, s) -> (b, s)) -> State s a -> State s bmtl Control.Monad.State.Strict Map both the return value and final state of a computation using the given function.
mapStateT :: (m (a, s) -> n (b, s)) -> StateT s m a -> StateT s n bmtl Control.Monad.State.Strict Map both the return value and final state of a computation using the given function.
mapWriter :: (Monoid w, Monoid w') => ((a, w) -> (b, w')) -> Writer w a -> Writer w' bmtl Control.Monad.Writer.CPS Map both the return value and output of a computation using the given function.
-
mtl Control.Monad.Writer.CPS Map both the return value and output of a computation using the given function.
runWriterT (mapWriterT f m) = f (runWriterT m)
mapWriter :: ((a, w) -> (b, w')) -> Writer w a -> Writer w' bmtl Control.Monad.Writer.Lazy Map both the return value and output of a computation using the given function.
mapWriterT :: (m (a, w) -> n (b, w')) -> WriterT w m a -> WriterT w' n bmtl Control.Monad.Writer.Lazy Map both the return value and output of a computation using the given function.
runWriterT (mapWriterT f m) = f (runWriterT m)
mapWriter :: ((a, w) -> (b, w')) -> Writer w a -> Writer w' bmtl Control.Monad.Writer.Strict Map both the return value and output of a computation using the given function.