Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 1f2b142b9d2ef4849a6f5316fa1c5b12 > files > 2593

ghc-6.10.4-1mdv2010.0.i586.rpm

<!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.Lazy</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-Lazy.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.Lazy</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
>Lazy 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 -&gt; s -&gt; (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 =&gt; <A HREF="Control-Monad-RWS-Class.html#t%3AMonadRWS"
>MonadRWS</A
> r w s (<A HREF="Control-Monad-RWS-Lazy.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 =&gt; <A HREF="Control-Monad-Writer-Class.html#t%3AMonadWriter"
>MonadWriter</A
> w (<A HREF="Control-Monad-RWS-Lazy.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 =&gt; <A HREF="Control-Monad-State-Class.html#t%3AMonadState"
>MonadState</A
> s (<A HREF="Control-Monad-RWS-Lazy.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 =&gt; <A HREF="Control-Monad-Reader-Class.html#t%3AMonadReader"
>MonadReader</A
> r (<A HREF="Control-Monad-RWS-Lazy.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 =&gt; <A HREF="../base/Control-Monad.html#t%3AMonad"
>Monad</A
> (<A HREF="Control-Monad-RWS-Lazy.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-Lazy.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 =&gt; <A HREF="../base/Control-Monad-Fix.html#t%3AMonadFix"
>MonadFix</A
> (<A HREF="Control-Monad-RWS-Lazy.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-Lazy.html#t%3ARWS"
>RWS</A
> r w s a -&gt; r -&gt; s -&gt; (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-Lazy.html#t%3ARWS"
>RWS</A
> r w s a -&gt; r -&gt; s -&gt; (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) -&gt; (b, s, w')) -&gt; <A HREF="Control-Monad-RWS-Lazy.html#t%3ARWS"
>RWS</A
> r w s a -&gt; <A HREF="Control-Monad-RWS-Lazy.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' -&gt; s -&gt; (r, s)) -&gt; <A HREF="Control-Monad-RWS-Lazy.html#t%3ARWS"
>RWS</A
> r w s a -&gt; <A HREF="Control-Monad-RWS-Lazy.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 -&gt; s -&gt; 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) =&gt; <A HREF="Control-Monad-RWS-Class.html#t%3AMonadRWS"
>MonadRWS</A
> r w s (<A HREF="Control-Monad-RWS-Lazy.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) =&gt; <A HREF="Control-Monad-Writer-Class.html#t%3AMonadWriter"
>MonadWriter</A
> w (<A HREF="Control-Monad-RWS-Lazy.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) =&gt; <A HREF="Control-Monad-State-Class.html#t%3AMonadState"
>MonadState</A
> s (<A HREF="Control-Monad-RWS-Lazy.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) =&gt; <A HREF="Control-Monad-Reader-Class.html#t%3AMonadReader"
>MonadReader</A
> r (<A HREF="Control-Monad-RWS-Lazy.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) =&gt; <A HREF="Control-Monad-Error-Class.html#t%3AMonadError"
>MonadError</A
> e (<A HREF="Control-Monad-RWS-Lazy.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 =&gt; <A HREF="Control-Monad-Trans.html#t%3AMonadTrans"
>MonadTrans</A
> (<A HREF="Control-Monad-RWS-Lazy.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) =&gt; <A HREF="../base/Control-Monad.html#t%3AMonad"
>Monad</A
> (<A HREF="Control-Monad-RWS-Lazy.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 =&gt; <A HREF="../base/Control-Monad.html#t%3AFunctor"
>Functor</A
> (<A HREF="Control-Monad-RWS-Lazy.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) =&gt; <A HREF="../base/Control-Monad-Fix.html#t%3AMonadFix"
>MonadFix</A
> (<A HREF="Control-Monad-RWS-Lazy.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) =&gt; <A HREF="../base/Control-Monad.html#t%3AMonadPlus"
>MonadPlus</A
> (<A HREF="Control-Monad-RWS-Lazy.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) =&gt; <A HREF="Control-Monad-Trans.html#t%3AMonadIO"
>MonadIO</A
> (<A HREF="Control-Monad-RWS-Lazy.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) =&gt; <A HREF="Control-Monad-Cont-Class.html#t%3AMonadCont"
>MonadCont</A
> (<A HREF="Control-Monad-RWS-Lazy.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 =&gt; <A HREF="Control-Monad-RWS-Lazy.html#t%3ARWST"
>RWST</A
> r w s m a -&gt; r -&gt; s -&gt; 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 =&gt; <A HREF="Control-Monad-RWS-Lazy.html#t%3ARWST"
>RWST</A
> r w s m a -&gt; r -&gt; s -&gt; 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) -&gt; n (b, s, w')) -&gt; <A HREF="Control-Monad-RWS-Lazy.html#t%3ARWST"
>RWST</A
> r w s m a -&gt; <A HREF="Control-Monad-RWS-Lazy.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' -&gt; s -&gt; (r, s)) -&gt; <A HREF="Control-Monad-RWS-Lazy.html#t%3ARWST"
>RWST</A
> r w s m a -&gt; <A HREF="Control-Monad-RWS-Lazy.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
>