{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreihujxz7mxkhbko5bhsh5b7supnwf7j7ac54tfj5gwhasd5jqzqzam",
"uri": "at://did:plc:pi6woz4d47bkuws673w2il2r/app.bsky.feed.post/3mlixwt4rnwt2"
},
"path": "/t/conduit-to-yield-first-lines-from-file-without-leaking-space-or-file-handles/14030#post_12",
"publishedAt": "2026-05-10T12:29:21.000Z",
"site": "https://discourse.haskell.org",
"tags": [
"here"
],
"textContent": "I don’t think it’s a bug with `awaitForever` and `bracketP` and `take`. If anything you can criticize the batteries-included API as trading promptness of file closing for quietness of code.\n\nThe quick solution here is to sequester the file reading in its own `ResourceT`. See here.",
"title": "Conduit to yield first lines from file without leaking space or file handles?"
}