<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>While maybe not directly related to this, for many small changes suggested to base the answer is often: go write a library and see how it works out. This is often for fairly stylistic changes to "fringe" components of base. Here we're talking about a full blown operational change to something incredibly common. If anything, I think it would have to subject to the same process - try it out, really use it anger, see what breaks and - hopefully! - what gets better.<br></div><div><br></div><div>On Wed, 30 Dec 2020, at 9:18 PM, Ryan Trinkle via Libraries wrote:<br></div><blockquote type="cite" id="qt" style=""><div>I think David's suggestion may have been that withFile would still close<br></div><div>the file at the end of the block, but would *also* close it if the<br></div><div>handle died.<br></div><div><br></div><div>On 12/30/20 4:05 PM, Henning Thielemann wrote:<br></div><div>><br></div><div>> On Wed, 30 Dec 2020, Ryan Trinkle via Libraries wrote:<br></div><div>><br></div><div>>> Although it might be nice to have a weak-reference-based alternative to<br></div><div>>> withFile, I think it would be best to keep the behavior of withFile as<br></div><div>>> predictable as possible (i.e. the current behavior), since closing a<br></div><div>>> file can be semantically significant.<br></div><div>><br></div><div>> Right, if I open and close and re-open a file, it must be closed<br></div><div>> before I can re-open it.<br></div><div>_______________________________________________<br></div><div>Libraries mailing list<br></div><div><a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br></div><div><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br></div><div><br></div></blockquote><div><br></div></body></html>