Re: Conduit missing closing file handles
Tom Ellis <[email protected]> Sat, 9 May 2026 17:05:32 +0100
| Newsgroups | gmane.comp.lang.haskell.cafe |
|---|---|
| Message-ID | <af9bTOP31RVO2HIJ@cloudinit-builder> |
On Sat, May 02, 2026 at 12:02:34PM +0100, Tom Ellis wrote: > So my guess is you can't achieve what you want with conduit. Instead > you could try to reuse some conduit pieces in the context of a safe > setup, such as Bluefin. > > A simpler challenge for conduit is whether there can be a conduit that > yields the first n lines of each file it is given as input. I've asked > that on Discourse. Let's see if it can be done. It looks like what you want can be done with conduit, at the cost of using a non-compositional (CPS) style: https://github.com/snoyberg/conduit/issues/532#issuecomment-4412941508 This would probably be sufficient for your needs in this case. Tom _______________________________________________ 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.