Re: Conduit missing closing file handles

Henning Thielemann <[email protected]> Fri, 1 May 2026 19:42:00 +0200 (CEST)
Newsgroups gmane.comp.lang.haskell.cafe
Message-ID <[email protected]>
On Fri, 1 May 2026, Tom Ellis wrote:

> Thanks, I fixed the bug. You can get the fixed version from:
>
> https://github.com/tomjaguarpaw/ad/blob/353fd275123a1ca50c7981349ec25c3997d4a18e/BluefinZipTar/BluefinZipTar.hs
>
> Please let me know if it works.  (I included a main for testing
> purposes, but you still just need convertZipToTar and its
> dependencies.)

It works indeed, now!

That is, you are in a way able to convert Conduits to your Bluefin 
transformers?


> The bug was that I was using Data.Conduit.List.isolate:
>
> https://hackage-content.haskell.org/package/conduit-1.3.6.1/docs/Data-Conduit-List.html#v:isolate
>
> but I should have used Data.Conduit.Binary.isolate:
>
> https://hackage-content.haskell.org/package/conduit-extra-1.3.8/docs/Data-Conduit-Binary.html#v:isolate

I see, that's easy to mix up.
_______________________________________________
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.