iteratee Fwd: patch: unfoldConvStream: workaround for space leak problem

Akio Takano 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>
Date: 2011/2/10
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...
Name: bind.dpatch
Type: application/octet-stream
Size: 2511 bytes
Desc: not available
URL: <http://projects.haskell.org/pipermail/iteratee/attachments/20110210/86486ed0/attachment.obj>


More information about the Iteratee mailing list