Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove an out-of-date comment

  • Loading branch information...
commit 12eb800af45b6f5154775cf3e0960f348a22c27f 1 parent a8d4a38
@igfoo igfoo authored
Showing with 0 additions and 5 deletions.
  1. +0 −5 Control/Exception/Base.hs
View
5 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))
Please sign in to comment.
Something went wrong with that request. Please try again.