Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
evalRWS :: Monoid w => RWS r w s a -> r -> s -> (a, w)transformers Control.Monad.Trans.RWS.CPS Evaluate a computation with the given initial state and environment, returning the final value and output, discarding the final state.
evalRWST :: (Monad m, Monoid w) => RWST r w s m a -> r -> s -> m (a, w)transformers Control.Monad.Trans.RWS.CPS Evaluate a computation with the given initial state and environment, returning the final value and output, discarding the final state.
execRWS :: Monoid w => RWS r w s a -> r -> s -> (s, w)transformers Control.Monad.Trans.RWS.CPS Evaluate a computation with the given initial state and environment, returning the final state and output, discarding the final value.
execRWST :: (Monad m, Monoid w) => RWST r w s m a -> r -> s -> m (s, w)transformers Control.Monad.Trans.RWS.CPS Evaluate a computation with the given initial state and environment, returning the final state and output, discarding the final value.
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.
runRWS :: Monoid w => RWS r w s a -> r -> s -> (a, s, w)transformers Control.Monad.Trans.RWS.CPS Unwrap an RWS computation as a function. (The inverse of rws.)
runRWST :: Monoid w => RWST r w s m a -> r -> s -> m (a, s, w)transformers Control.Monad.Trans.RWS.CPS Unwrap an RWST computation as a function. (The inverse of rwsT.)
withRWS :: (r' -> s -> (r, s)) -> RWS r w s a -> RWS r' w s atransformers Control.Monad.Trans.RWS.CPS withRWS f m executes action m with an initial environment and state modified by applying f.
-
transformers Control.Monad.Trans.RWS.CPS withRWST f m executes action m with an initial environment and state modified by applying f.