diff options
author | Ian Lynagh <ian@well-typed.com> | 2012-11-17 21:46:30 +0000 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2012-11-17 21:46:30 +0000 |
commit | 7be5177147173cd4ef52eae8a82d93b153030802 (patch) | |
tree | db8619782d614b38f97576977ccc86d646d38f78 /libraries/base/Control/Exception | |
parent | 7dd230f9eb8a9e363c64506c8d91b9e83ad46dd1 (diff) | |
download | haskell-7be5177147173cd4ef52eae8a82d93b153030802.tar.gz |
Remove an out-of-date comment
Diffstat (limited to 'libraries/base/Control/Exception')
-rw-r--r-- | libraries/base/Control/Exception/Base.hs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libraries/base/Control/Exception/Base.hs b/libraries/base/Control/Exception/Base.hs index b1d1c8465d..281af02e30 100644 --- a/libraries/base/Control/Exception/Base.hs +++ b/libraries/base/Control/Exception/Base.hs @@ -452,11 +452,6 @@ mapException f v = unsafePerformIO (catch (evaluate v) -- up to the next enclosing exception handler. -- -- > try a = catch (Right `liftM` a) (return . Left) --- --- Note that "System.IO.Error" also exports a function called --- 'System.IO.Error.try' with a similar type to 'Control.Exception.try', --- except that it catches only the IO and user families of exceptions --- (as required by the Haskell 98 @IO@ module). try :: Exception e => IO a -> IO (Either e a) try a = catch (a >>= \ v -> return (Right v)) (\e -> return (Left e)) |