monad-ran-0.0.5: Implementations of common monads and monad transformers as right-kan extensionsSource codeContentsIndex
Control.Monad.Ran.RWS
Documentation
newtype RWS r w s a Source
Constructors
RWS
getRWS :: forall o. (a -> w -> s -> o) -> r -> s -> o
show/hide Instances
Monoid w => MonadRWS r w s (RWS r w s)
Monoid w => MonadReader r (RWS r w s)
Monoid w => MonadState s (RWS r w s)
Monoid w => MonadWriter w (RWS r w s)
Monoid w => Monad (RWS r w s)
Monoid w => Functor (RWS r w s)
Monoid w => Applicative (RWS r w s)
runRWS :: RWS r w s a -> r -> s -> (a, w, s)Source
Produced by Haddock version 2.3.0