<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--Rendered using the Haskell Html Library v0.2--> <HTML ><HEAD ><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" ><TITLE >Control.Monad.RWS.Strict</TITLE ><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css" ><SCRIPT SRC="haddock-util.js" TYPE="text/javascript" ></SCRIPT ><SCRIPT TYPE="text/javascript" >window.onload = function () {setSynopsis("mini_Control-Monad-RWS-Strict.html")};</SCRIPT ></HEAD ><BODY ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="topbar" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD ><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" " ></TD ><TD CLASS="title" >mtl-1.1.0.2: Monad transformer library</TD ><TD CLASS="topbut" ><A HREF="index.html" >Contents</A ></TD ><TD CLASS="topbut" ><A HREF="doc-index.html" >Index</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="modulebar" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD ><FONT SIZE="6" >Control.Monad.RWS.Strict</FONT ></TD ><TD ALIGN="right" ><TABLE CLASS="narrow" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="infohead" >Portability</TD ><TD CLASS="infoval" >non-portable (multi-param classes, functional dependencies)</TD ></TR ><TR ><TD CLASS="infohead" >Stability</TD ><TD CLASS="infoval" >experimental</TD ></TR ><TR ><TD CLASS="infohead" >Maintainer</TD ><TD CLASS="infoval" >libraries@haskell.org</TD ></TR ></TABLE ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" >Description</TD ></TR ><TR ><TD CLASS="doc" ><P >Strict RWS Monad. </P ><P >Inspired by the paper /Functional Programming with Overloading and Higher-Order Polymorphism/, Mark P Jones (<A HREF="http://web.cecs.pdx.edu/~mpj/" >http://web.cecs.pdx.edu/~mpj/</A >) Advanced School of Functional Programming, 1995. </P ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" >Documentation</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >newtype</SPAN > <A NAME="t:RWS" ><A NAME="t%3ARWS" ></A ></A ><B >RWS</B > r w s a </TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="section4" >Constructors</TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="5" CELLPADDING="0" ><TR ><TD CLASS="arg" ><A NAME="v:RWS" ><A NAME="v%3ARWS" ></A ></A ><B >RWS</B ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="body" COLSPAN="2" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="arg" ><A NAME="v:runRWS" ><A NAME="v%3ArunRWS" ></A ></A ><B >runRWS</B > :: r -> s -> (a, s, w)</TD ><TD CLASS="rdoc" ></TD ></TR ></TABLE ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="section4" ><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:RWS')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:RWS" STYLE="display:block;" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="decl" ><A HREF="../base/Data-Monoid.html#t%3AMonoid" >Monoid</A > w => <A HREF="Control-Monad-RWS-Class.html#t%3AMonadRWS" >MonadRWS</A > r w s (<A HREF="Control-Monad-RWS-Strict.html#t%3ARWS" >RWS</A > r w s)</TD ></TR ><TR ><TD CLASS="decl" ><A HREF="../base/Data-Monoid.html#t%3AMonoid" >Monoid</A > w => <A HREF="Control-Monad-Writer-Class.html#t%3AMonadWriter" >MonadWriter</A > w (<A HREF="Control-Monad-RWS-Strict.html#t%3ARWS" >RWS</A > r w s)</TD ></TR ><TR ><TD CLASS="decl" ><A HREF="../base/Data-Monoid.html#t%3AMonoid" >Monoid</A > w => <A HREF="Control-Monad-State-Class.html#t%3AMonadState" >MonadState</A > s (<A HREF="Control-Monad-RWS-Strict.html#t%3ARWS" >RWS</A > r w s)</TD ></TR ><TR ><TD CLASS="decl" ><A HREF="../base/Data-Monoid.html#t%3AMonoid" >Monoid</A > w => <A HREF="Control-Monad-Reader-Class.html#t%3AMonadReader" >MonadReader</A > r (<A HREF="Control-Monad-RWS-Strict.html#t%3ARWS" >RWS</A > r w s)</TD ></TR ><TR ><TD CLASS="decl" ><A HREF="../base/Data-Monoid.html#t%3AMonoid" >Monoid</A > w => <A HREF="../base/Control-Monad.html#t%3AMonad" >Monad</A > (<A HREF="Control-Monad-RWS-Strict.html#t%3ARWS" >RWS</A > r w s)</TD ></TR ><TR ><TD CLASS="decl" ><A HREF="../base/Control-Monad.html#t%3AFunctor" >Functor</A > (<A HREF="Control-Monad-RWS-Strict.html#t%3ARWS" >RWS</A > r w s)</TD ></TR ><TR ><TD CLASS="decl" ><A HREF="../base/Data-Monoid.html#t%3AMonoid" >Monoid</A > w => <A HREF="../base/Control-Monad-Fix.html#t%3AMonadFix" >MonadFix</A > (<A HREF="Control-Monad-RWS-Strict.html#t%3ARWS" >RWS</A > r w s)</TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:evalRWS" ><A NAME="v%3AevalRWS" ></A ></A ><B >evalRWS</B > :: <A HREF="Control-Monad-RWS-Strict.html#t%3ARWS" >RWS</A > r w s a -> r -> s -> (a, w)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:execRWS" ><A NAME="v%3AexecRWS" ></A ></A ><B >execRWS</B > :: <A HREF="Control-Monad-RWS-Strict.html#t%3ARWS" >RWS</A > r w s a -> r -> s -> (s, w)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:mapRWS" ><A NAME="v%3AmapRWS" ></A ></A ><B >mapRWS</B > :: ((a, s, w) -> (b, s, w')) -> <A HREF="Control-Monad-RWS-Strict.html#t%3ARWS" >RWS</A > r w s a -> <A HREF="Control-Monad-RWS-Strict.html#t%3ARWS" >RWS</A > r w' s b</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withRWS" ><A NAME="v%3AwithRWS" ></A ></A ><B >withRWS</B > :: (r' -> s -> (r, s)) -> <A HREF="Control-Monad-RWS-Strict.html#t%3ARWS" >RWS</A > r w s a -> <A HREF="Control-Monad-RWS-Strict.html#t%3ARWS" >RWS</A > r' w s a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >newtype</SPAN > <A NAME="t:RWST" ><A NAME="t%3ARWST" ></A ></A ><B >RWST</B > r w s m a </TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="section4" >Constructors</TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="5" CELLPADDING="0" ><TR ><TD CLASS="arg" ><A NAME="v:RWST" ><A NAME="v%3ARWST" ></A ></A ><B >RWST</B ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="body" COLSPAN="2" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="arg" ><A NAME="v:runRWST" ><A NAME="v%3ArunRWST" ></A ></A ><B >runRWST</B > :: r -> s -> m (a, s, w)</TD ><TD CLASS="rdoc" ></TD ></TR ></TABLE ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="section4" ><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:RWST')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:RWST" STYLE="display:block;" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="decl" >(<A HREF="../base/Data-Monoid.html#t%3AMonoid" >Monoid</A > w, <A HREF="../base/Control-Monad.html#t%3AMonad" >Monad</A > m) => <A HREF="Control-Monad-RWS-Class.html#t%3AMonadRWS" >MonadRWS</A > r w s (<A HREF="Control-Monad-RWS-Strict.html#t%3ARWST" >RWST</A > r w s m)</TD ></TR ><TR ><TD CLASS="decl" >(<A HREF="../base/Data-Monoid.html#t%3AMonoid" >Monoid</A > w, <A HREF="../base/Control-Monad.html#t%3AMonad" >Monad</A > m) => <A HREF="Control-Monad-Writer-Class.html#t%3AMonadWriter" >MonadWriter</A > w (<A HREF="Control-Monad-RWS-Strict.html#t%3ARWST" >RWST</A > r w s m)</TD ></TR ><TR ><TD CLASS="decl" >(<A HREF="../base/Data-Monoid.html#t%3AMonoid" >Monoid</A > w, <A HREF="../base/Control-Monad.html#t%3AMonad" >Monad</A > m) => <A HREF="Control-Monad-State-Class.html#t%3AMonadState" >MonadState</A > s (<A HREF="Control-Monad-RWS-Strict.html#t%3ARWST" >RWST</A > r w s m)</TD ></TR ><TR ><TD CLASS="decl" >(<A HREF="../base/Data-Monoid.html#t%3AMonoid" >Monoid</A > w, <A HREF="../base/Control-Monad.html#t%3AMonad" >Monad</A > m) => <A HREF="Control-Monad-Reader-Class.html#t%3AMonadReader" >MonadReader</A > r (<A HREF="Control-Monad-RWS-Strict.html#t%3ARWST" >RWST</A > r w s m)</TD ></TR ><TR ><TD CLASS="decl" >(<A HREF="../base/Data-Monoid.html#t%3AMonoid" >Monoid</A > w, <A HREF="Control-Monad-Error-Class.html#t%3AMonadError" >MonadError</A > e m) => <A HREF="Control-Monad-Error-Class.html#t%3AMonadError" >MonadError</A > e (<A HREF="Control-Monad-RWS-Strict.html#t%3ARWST" >RWST</A > r w s m)</TD ></TR ><TR ><TD CLASS="decl" ><A HREF="../base/Data-Monoid.html#t%3AMonoid" >Monoid</A > w => <A HREF="Control-Monad-Trans.html#t%3AMonadTrans" >MonadTrans</A > (<A HREF="Control-Monad-RWS-Strict.html#t%3ARWST" >RWST</A > r w s)</TD ></TR ><TR ><TD CLASS="decl" >(<A HREF="../base/Data-Monoid.html#t%3AMonoid" >Monoid</A > w, <A HREF="../base/Control-Monad.html#t%3AMonad" >Monad</A > m) => <A HREF="../base/Control-Monad.html#t%3AMonad" >Monad</A > (<A HREF="Control-Monad-RWS-Strict.html#t%3ARWST" >RWST</A > r w s m)</TD ></TR ><TR ><TD CLASS="decl" ><A HREF="../base/Control-Monad.html#t%3AMonad" >Monad</A > m => <A HREF="../base/Control-Monad.html#t%3AFunctor" >Functor</A > (<A HREF="Control-Monad-RWS-Strict.html#t%3ARWST" >RWST</A > r w s m)</TD ></TR ><TR ><TD CLASS="decl" >(<A HREF="../base/Data-Monoid.html#t%3AMonoid" >Monoid</A > w, <A HREF="../base/Control-Monad-Fix.html#t%3AMonadFix" >MonadFix</A > m) => <A HREF="../base/Control-Monad-Fix.html#t%3AMonadFix" >MonadFix</A > (<A HREF="Control-Monad-RWS-Strict.html#t%3ARWST" >RWST</A > r w s m)</TD ></TR ><TR ><TD CLASS="decl" >(<A HREF="../base/Data-Monoid.html#t%3AMonoid" >Monoid</A > w, <A HREF="../base/Control-Monad.html#t%3AMonadPlus" >MonadPlus</A > m) => <A HREF="../base/Control-Monad.html#t%3AMonadPlus" >MonadPlus</A > (<A HREF="Control-Monad-RWS-Strict.html#t%3ARWST" >RWST</A > r w s m)</TD ></TR ><TR ><TD CLASS="decl" >(<A HREF="../base/Data-Monoid.html#t%3AMonoid" >Monoid</A > w, <A HREF="Control-Monad-Trans.html#t%3AMonadIO" >MonadIO</A > m) => <A HREF="Control-Monad-Trans.html#t%3AMonadIO" >MonadIO</A > (<A HREF="Control-Monad-RWS-Strict.html#t%3ARWST" >RWST</A > r w s m)</TD ></TR ><TR ><TD CLASS="decl" >(<A HREF="../base/Data-Monoid.html#t%3AMonoid" >Monoid</A > w, <A HREF="Control-Monad-Cont-Class.html#t%3AMonadCont" >MonadCont</A > m) => <A HREF="Control-Monad-Cont-Class.html#t%3AMonadCont" >MonadCont</A > (<A HREF="Control-Monad-RWS-Strict.html#t%3ARWST" >RWST</A > r w s m)</TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:evalRWST" ><A NAME="v%3AevalRWST" ></A ></A ><B >evalRWST</B > :: <A HREF="../base/Control-Monad.html#t%3AMonad" >Monad</A > m => <A HREF="Control-Monad-RWS-Strict.html#t%3ARWST" >RWST</A > r w s m a -> r -> s -> m (a, w)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:execRWST" ><A NAME="v%3AexecRWST" ></A ></A ><B >execRWST</B > :: <A HREF="../base/Control-Monad.html#t%3AMonad" >Monad</A > m => <A HREF="Control-Monad-RWS-Strict.html#t%3ARWST" >RWST</A > r w s m a -> r -> s -> m (s, w)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:mapRWST" ><A NAME="v%3AmapRWST" ></A ></A ><B >mapRWST</B > :: (m (a, s, w) -> n (b, s, w')) -> <A HREF="Control-Monad-RWS-Strict.html#t%3ARWST" >RWST</A > r w s m a -> <A HREF="Control-Monad-RWS-Strict.html#t%3ARWST" >RWST</A > r w' s n b</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withRWST" ><A NAME="v%3AwithRWST" ></A ></A ><B >withRWST</B > :: (r' -> s -> (r, s)) -> <A HREF="Control-Monad-RWS-Strict.html#t%3ARWST" >RWST</A > r w s m a -> <A HREF="Control-Monad-RWS-Strict.html#t%3ARWST" >RWST</A > r' w s m a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >module <A HREF="Control-Monad-RWS-Class.html" >Control.Monad.RWS.Class</A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >module <A HREF="../base/Control-Monad.html" >Control.Monad</A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >module <A HREF="../base/Control-Monad-Fix.html" >Control.Monad.Fix</A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >module <A HREF="Control-Monad-Trans.html" >Control.Monad.Trans</A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >module <A HREF="../base/Data-Monoid.html" >Data.Monoid</A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="botbar" >Produced by <A HREF="http://www.haskell.org/haddock/" >Haddock</A > version 2.4.2</TD ></TR ></TABLE ></BODY ></HTML >