
9 Jul
2012
9 Jul
'12
6:29 p.m.
On Mon, Jul 9, 2012 at 8:28 AM, Roman Cheplyaka
Very nice!
Here's a patch to generalize foreach to any Foldable: https://github.com/joeyadams/haskell-control-monad-loop/pull/1
Thanks for the patch! I merged it, but I plan to wait a little while before uploading another release to Hackage. This changes the signature of an existing function, so I'll have to bump the major version number.
Also, it's not obvious how your tests work. Please consider using HUnit and test-framework (or similar) to organize them.
The tests currently aren't automated. It's hard to write an automated test to make sure a program doesn't leak. Not impossible (thanks to GHC.Stats), but hard. Thanks for pointing out test-framework, though. -Joey