mtl-1.1.0.1: Monad transformer librarySource codeContentsIndex
Control.Monad.RWS.Lazy
Portabilitynon-portable (multi-param classes, functional dependencies)
Stabilityexperimental
Maintainerlibraries@haskell.org
Description

Lazy RWS monad.

Inspired by the paper /Functional Programming with Overloading and Higher-Order Polymorphism/, Mark P Jones (http://www.cse.ogi.edu/~mpj/) Advanced School of Functional Programming, 1995.

Documentation
newtype RWS r w s aSource
Constructors
RWS
runRWS :: (r -> s -> (a, s, w))
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)
Functor (RWS r w s)
Monoid w => Monad (RWS r w s)
Monoid w => MonadFix (RWS r w s)
evalRWS :: RWS r w s a -> r -> s -> (a, w)Source
execRWS :: RWS r w s a -> r -> s -> (s, w)Source
mapRWS :: ((a, s, w) -> (b, s, w')) -> RWS r w s a -> RWS r w' s bSource
withRWS :: (r' -> s -> (r, s)) -> RWS r w s a -> RWS r' w s aSource
newtype RWST r w s m aSource
Constructors
RWST
runRWST :: (r -> s -> m (a, s, w))
show/hide Instances
(Monoid w, Monad m) => MonadRWS r w s (RWST r w s m)
(Monoid w, MonadError e m) => MonadError e (RWST r w s m)
(Monoid w, Monad m) => MonadReader r (RWST r w s m)
(Monoid w, Monad m) => MonadState s (RWST r w s m)
(Monoid w, Monad m) => MonadWriter w (RWST r w s m)
Monoid w => MonadTrans (RWST r w s)
Monad m => Functor (RWST r w s m)
(Monoid w, Monad m) => Monad (RWST r w s m)
(Monoid w, MonadCont m) => MonadCont (RWST r w s m)
(Monoid w, MonadFix m) => MonadFix (RWST r w s m)
(Monoid w, MonadIO m) => MonadIO (RWST r w s m)
(Monoid w, MonadPlus m) => MonadPlus (RWST r w s m)
evalRWST :: Monad m => RWST r w s m a -> r -> s -> m (a, w)Source
execRWST :: Monad m => RWST r w s m a -> r -> s -> m (s, w)Source
mapRWST :: (m (a, s, w) -> n (b, s, w')) -> RWST r w s m a -> RWST r w' s n bSource
withRWST :: (r' -> s -> (r, s)) -> RWST r w s m a -> RWST r' w s m aSource
module Control.Monad.RWS.Class
module Control.Monad
module Control.Monad.Fix
module Control.Monad.Trans
module Data.Monoid
Produced by Haddock version 0.9