Re:What it's like to use Haskell
by klrr on Wednesday March 26, 2014 @12:45PM
(#7474613)
As for resource leaks, the particular example in the post was a bit unfortunate. The problem in general have a solution though. You can either use functions that limit a resource inside a limited scope, and then have it clean up automatically when done (like 'withFile'). And if you want to do more complicated things there are the resourcet and pipes-safe libraries.
[ Parent
| on HN ]
There are no comments on this comment yet.