
Hello, I just experienced a weird problem while using HUnit. My code (a simple apache log analyser) used to run in constant space (thanks to the good suggestions and examples I received from the list :-)), and I wanted to add some unit tests. To my great surprise, the code started to eat up lots of memory again. I've isolated the problem down. It seems that if I declare my test suite with the line: testParseLog = HUnit.runTestTT (HUnit.TestList [_testUpdate]) then my code does not run in constant space anymore. Note that the testParseLog is not actually used, but only exported from the module, so that I can run it with ghc -e testParseLog. The code is attached. The line in question is at the end of ParseLog.hs, and I compiled the whole with ghc-6.2.2 (debian testing) Any hint ? thanks in advance, Frédéric -- Frédéric Gobry Infoscience DIT-KIS / EPFL Tel: +41216932288 http://people.epfl.ch/frederic.gobry