29 Jun
2011
29 Jun
'11
4:47 p.m.
I think my head isn't on straight this morning. I think I meant something more along the lines of Control.Monad.State On Wed, Jun 29, 2011 at 8:27 AM, Christopher Done <chrisdone@googlemail.com>wrote:
On 29 June 2011 17:22, Michael Xavier <nemesisdesign@gmail.com> wrote:
I tend to use Control.Monad.Reader for stateful stuff like this. It is found in the mtl package http://hackage.haskell.org/package/mtl-2.0.1.0
How would you use reader for a counter?
-- Michael Xavier http://www.michaelxavier.net