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

On Wed, Jun 29, 2011 at 7:40 AM, ARJANEN Loïc Jean-David <arjanen.loic@gmail.com> wrote:
Hello,

For a pet project I need a global counter, giving how many times a
given function was called. What would you use for that purpose ?

Loic

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners



--
Michael Xavier
http://www.michaelxavier.net