iteratee Fwd: patch: unfoldConvStream: workaround for space leak problem
tkn.akio at gmail.com
Thu Feb 10 03:24:39 GMT 2011
It seems I replied only to John. I forward it to the list.
---------- Forwarded message ----------
From: Akio Takano <tkn.akio at gmail.com>
Subject: Re: iteratee patch: unfoldConvStream: workaround for space leak problem
To: John Lato <jwlato at gmail.com>
2011/2/9 John Lato <jwlato at gmail.com>:
> I provided an alternative unfoldConvStream to Maciej privately, have
> you had an opportunity to compare the two? I prefer my proposed
> definition because it has fewer local bindings and also lifts the
> binding of "f" outside the recursive calls, however I don't know if it
> actually solves the space leak.
I've just checked your definition and it seems to work.
I noticed that with GHC 6.12.3, (>>=) for Iteratee also suffers from
the same problem. I attached a patch to work around the issue.
-- Takano Akio
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2511 bytes
Desc: not available
More information about the Iteratee