patch applied (packages/base): Remove the dangerous Exception functions

Ian Lynagh igloo at earth.li
Sun Aug 3 09:51:42 EDT 2008


Sat Aug  2 16:13:58 PDT 2008  Ian Lynagh <igloo at earth.li>
  * Remove the dangerous Exception functions
  Removed: catchAny, handleAny, ignoreExceptions
  These make it easy to eat /any/ exception, which is rarely what you want.
  Normally you either want to:
  * only catch exceptions in a certain part of the hierarchy, e.g.
    "file not found", in which case you should only catch exceptions
    of the appropriate type,
  or
  * you want to do some cleanup when an exception happens, and then rethrow
    the exception, in which case you should use onException, or one of the
    bracketing functions.

    M ./Control/Exception.hs -18 +3

View patch online:
http://darcs.haskell.org/packages/base/_darcs/patches/20080802231358-3fd76-c71f2ecb2fc2e9d98fbdd4de8344775931da6229.gz


More information about the Cvs-libraries mailing list