mtl-2.1.2: Monad classes, using functional dependencies

Portabilitynon-portable (multi-param classes, functional dependencies)
Stabilityexperimental
Maintainerlibraries@haskell.org
Safe HaskellSafe-Inferred

Control.Monad.RWS.Class

Description

Declaration of the MonadRWS class.

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

Documentation

class (Monoid w, MonadReader r m, MonadWriter w m, MonadState s m) => MonadRWS r w s m | m -> r, m -> w, m -> sSource

Instances

MonadRWS r w s m => MonadRWS r w s (MaybeT m) 
MonadRWS r w s m => MonadRWS r w s (IdentityT m) 
(Error e, MonadRWS r w s m) => MonadRWS r w s (ErrorT e m) 
(Monoid w, Monad m) => MonadRWS r w s (RWST r w s m) 
(Monoid w, Monad m) => MonadRWS r w s (RWST r w s m)