[Haskell-cafe] Absolutely confused with error/exception handling

Brandon Allbery allbery.b at gmail.com
Sun Dec 18 03:54:31 UTC 2016


On Sun, Dec 18, 2016 at 3:45 AM, Saurabh Nanda <saurabhnanda at gmail.com>
wrote:

> if I don't understand why I'm unable to catch errors in MonadIO I'm bound
> to get stuck again, or implement it incorrectly (for example, what are the
> resource leaks that were being referred to?)


https://mail.haskell.org/pipermail/libraries/2014-November/024224.html is
the start of the rather large thread that led to the current exception
primitives, which exception managers ranging from the standard `bracket` to
MonadBaseControl rely on. There are quite a few examples of resource leaks
during exception handling (or despite exception handling!) in it, along
with many other pitfalls that can occur.

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20161218/adc1a5c2/attachment.html>


More information about the Haskell-Cafe mailing list