
Hello, I'm a haskell beginner, and I'm struggling with the following problem: I've started writing a simple apache log file analyzer, but I cannot get rid of important memory usage problems (in fact, at each attempt, I fear I won't be able to unlock my box as my linux 2.6.9 kernel is on its knees, which reminds me on my early days writing C on MMU-less processors... not because of the language of course :-)) Enclosed is a sample code, which aborts on a large (> 100000 lines) file. I tried different variations (readFile $ lines, openFile, openFile + IORef,...) but with no success... So, if the enclosed version is not too far, please give me a hint. Alternatively, if I took the wrong direction, please refocus my search .-) Thanks in advance, Frédéric -- Frédéric Gobry Infoscience DIT-KIS / EPFL Tel: +41216932288 http://people.epfl.ch/frederic.gobry