I tend to use Control.Monad.Reader for stateful stuff like this. It is found in the mtl package
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