[Haskell-cafe] foldl and space problems

Gracjan Polak gracjan at acchsh.com
Mon Jun 6 07:15:57 EDT 2005


My space problems continued...

I have foldl that produces list, some combining function and quite large 
source list:

let xyz = foldl f state myBigList

This setting should lazyli consume myBigList when next elements of xyz 
are demanded. Except that it seems that myBigList is held by state to 
the end of computation :(

Question: is there any way to see what is holding my source list? I did 
try to guess, but without results as of now:(

How do I debug and/or reason about such situation?


More information about the Haskell-Cafe mailing list