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.
mapSelect :: (a -> a) -> Select r a -> Select r atransformers Control.Monad.Trans.Select Apply a function to transform the result of a selection computation.
mapSelectT :: (m a -> m a) -> SelectT r m a -> SelectT r m atransformers Control.Monad.Trans.Select Apply a function to transform the result of a selection computation. This has a more restricted type than the map operations for other monad transformers, because SelectT does not define a functor in the category of monads.
runSelectT (mapSelectT f m) = f . runSelectT m
mapState :: ((a, s) -> (b, s)) -> State s a -> State s btransformers Control.Monad.Trans.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 btransformers Control.Monad.Trans.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 btransformers Control.Monad.Trans.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 btransformers Control.Monad.Trans.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' btransformers Control.Monad.Trans.Writer.CPS Map both the return value and output of a computation using the given function.
-
transformers Control.Monad.Trans.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' btransformers Control.Monad.Trans.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 btransformers Control.Monad.Trans.Writer.Lazy Map both the return value and output of a computation using the given function.
runWriterT (mapWriterT f m) = f (runWriterT m)