Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/12eb800af45b6f5154775cf3e0960f348a22c27f

>---------------------------------------------------------------

commit 12eb800af45b6f5154775cf3e0960f348a22c27f
Author: Ian Lynagh <[email protected]>
Date:   Sat Nov 17 21:46:30 2012 +0000

    Remove an out-of-date comment

>---------------------------------------------------------------

 Control/Exception/Base.hs |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/Control/Exception/Base.hs b/Control/Exception/Base.hs
index b1d1c84..281af02 100644
--- a/Control/Exception/Base.hs
+++ b/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))



_______________________________________________
Cvs-libraries mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-libraries

Reply via email to