I think my head isn&#39;t on straight this morning. I think I meant something more along the lines of Control.Monad.State<br><br><div class="gmail_quote">On Wed, Jun 29, 2011 at 8:27 AM, Christopher Done <span dir="ltr">&lt;<a href="mailto:chrisdone@googlemail.com">chrisdone@googlemail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 29 June 2011 17:22, Michael Xavier &lt;<a href="mailto:nemesisdesign@gmail.com">nemesisdesign@gmail.com</a>&gt; wrote:<br>

&gt; I tend to use Control.Monad.Reader for stateful stuff like this. It is found<br>
&gt; in the mtl package<br>
&gt; <a href="http://hackage.haskell.org/package/mtl-2.0.1.0" target="_blank">http://hackage.haskell.org/package/mtl-2.0.1.0</a><br>
<br>
</div>How would you use reader for a counter?<br>
</blockquote></div><br><br clear="all"><br>-- <br>Michael Xavier<br><a href="http://www.michaelxavier.net">http://www.michaelxavier.net</a><br>