Remove the dangerous Exception functions
authorIan Lynagh <igloo@earth.li>
Sat, 2 Aug 2008 23:13:58 +0000 (23:13 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 2 Aug 2008 23:13:58 +0000 (23:13 +0000)
commit271884f9b31cb0104a81a395e1cca75669fe4348
tree3f93cc8b9f9f887ac9ca7fae467d531ca3a45135
parent3e803c9d9cf0602b60313b768beec847ee12a69c
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.
Control/Exception.hs