Re: Conduit missing closing file handles

Henning Thielemann <[email protected]> Fri, 1 May 2026 11:26:34 +0200 (CEST)
Newsgroups gmane.comp.lang.haskell.cafe
Message-ID <[email protected]>
On Thu, 30 Apr 2026, Tom Ellis wrote:

> You have to be a bit careful about what "immediately after reading" 
> means.  Actually, I think it means "immediately after the file handle 
> indicates it has reached end of file".

Interesting. This would explain my observations. But if the file handle is 
not closed immediately, this Conduit is not much better than lazy 
readFile, is it?

> I have a simpler reproducer for this below.

Yes, this is a nice minimal demonstration of the problem.

> However, there is sadly not a large ecosystem around Bluefin, and no Zip 
> library.

My program would also require a Tar library.
_______________________________________________
Haskell-Cafe mailing list -- [email protected]
To (un)subscribe, modify options or view archives go to:
Only members subscribed via the mailman list are allowed to post.