Hoogle Search
Within LTS Haskell 24.34 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapRWS :: ((a, s, w) -> (b, s, w')) -> RWS r w s a -> RWS r w' s bdunai Control.Monad.Trans.MSF.RWS 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 bdunai Control.Monad.Trans.MSF.RWS Map the inner computation using the given function.
mapReader :: (a -> b) -> Reader r a -> Reader r bdunai Control.Monad.Trans.MSF.Reader Transform the value returned by a Reader.
mapReaderT :: (m a -> n b) -> ReaderT r m a -> ReaderT r n bdunai Control.Monad.Trans.MSF.Reader Transform the computation inside a ReaderT.
runReaderT (mapReaderT f m) = f . runReaderT m
mapState :: ((a, s) -> (b, s)) -> State s a -> State s bdunai Control.Monad.Trans.MSF.State 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 bdunai Control.Monad.Trans.MSF.State Map both the return value and final state of a computation using the given function.
mapWriter :: ((a, w) -> (b, w')) -> Writer w a -> Writer w' bdunai Control.Monad.Trans.MSF.Writer 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 bdunai Control.Monad.Trans.MSF.Writer Map both the return value and output of a computation using the given function.
runWriterT (mapWriterT f m) = f (runWriterT m)
mapMaybeS :: forall (m :: Type -> Type) a b . Monad m => MSF m a b -> MSF m (Maybe a) (Maybe b)dunai Data.MonadicStreamFunction.Util Apply an MSF to every input. Freezes temporarily if the input is Nothing, and continues as soon as a Just is received.
mappendFrom :: forall n (m :: Type -> Type) . (Monoid n, Monad m) => n -> MSF m n ndunai Data.MonadicStreamFunction.Util Accumulate the inputs, starting from an initial monoid value.