
9 Jul
2012
9 Jul
'12
5:45 p.m.
* Joey Adams
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.
Unfortunately, in Haskell space usage is not modular[1], so ensuring that a library (as opposed to a particular program) doesn't lead to memory leaks is often hard. Unit/property tests have more obvious benefits, IMO. [1]: http://ro-che.info/articles/2012-04-08-space-usage-reasoning.html -- Roman I. Cheplyaka :: http://ro-che.info/