the code for the same can be found at https://github.com/sunilnandihalli/is2 it is a single main.hs file so compilation is simply
 ghc main.hs --make
thanks,
Sunil.

On Tue, Aug 30, 2011 at 3:39 PM, Sunil S Nandihalli <sunil.nandihalli@gmail.com> wrote:
Hi everybody,
 May be I am doing it wrong being a beginner.. but here is what I want.. I am trying to debug a stack overflow problem by printing a lot using "trace" commands. But it does not seem to seem to be printing in the expected order. so it has been misleading quiet a bit. Can somebody guide me as to how to modify the laziness of the program or some pointers on how to debug the stack overflow errors. 
Thanks in advance.
Sunil.