The thing is that
UPD.: Issue has been resolved
Things started to getting clearer. Here is a nice page explaining laziness during file read in Haskell (thanks to Vadim Platonov), section "hGetContents, hClose, readFile".
I have tried samples from that resource which should solve unwanted laziness, but memory leak still occurred. Moreover, those samples ran for ages on just several thousands of files and ate much more memory comparing to standard
But my colleague just informed me, that the version which I posted previously runs without leaks on newer ghci version. I am too f*cked up after working day, so I hope to figure that out tomorrow.
Here is an easy and simple way to read configuration files in Haskell using ConfigFile package.
In this post I will describe how to connect and use MySQL with Haskell.
Standard ML is a nice functional programming language. But unfortunately it is painful to debug applications. At least for me after using Haskell for some time. The problem is that there is no way to easy print out the data structure in order to debug it in good old "sysout" way.
I am happy to announce, that I am starting working on my first research project for Copenhagen University. This project is about data mining on huge base of XML documents. Since we all like functional languages at our faculty, most part of it will be implemented using them. So I hope soon there will be a lot of posts about data mining and functional languages!