
18 Jun
2013
18 Jun
'13
5:53 a.m.
Hi Volker,
In the meantime I did something very simple. I just have a step function
taking a maybe state parameter which recurses until the state is nothing.
Then main = step init
Adrian.
On 18 Jun 2013 13:29, "Karl Voelker"
I would use the State monad rather than passing the state explicitly. Then the "body of the loop" is of type "m a" rather than "a -> m a", and you can use "sequence . repeat" on it.
-Karl
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners