[commit: base] master: Remove out-of-date docs about Prelude.catch; fixes #7348 (de39af2)
Ian Lynagh
igloo at earth.li
Sat Oct 20 02:23:24 CEST 2012
Repository : ssh://darcs.haskell.org//srv/darcs/packages/base
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/de39af230fd59abde8d02f3f6a66373de750a735
>---------------------------------------------------------------
commit de39af230fd59abde8d02f3f6a66373de750a735
Author: Ian Lynagh <ian at well-typed.com>
Date: Sat Oct 20 00:21:54 2012 +0100
Remove out-of-date docs about Prelude.catch; fixes #7348
>---------------------------------------------------------------
Control/Exception/Base.hs | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
diff --git a/Control/Exception/Base.hs b/Control/Exception/Base.hs
index e64656f..b1d1c84 100644
--- a/Control/Exception/Base.hs
+++ b/Control/Exception/Base.hs
@@ -379,22 +379,6 @@ blocked = return False
-- might get a the opposite behaviour. This is ok, because 'catch' is an
-- 'IO' computation.
--
--- Note that the "Prelude" also exports a function called
--- 'Prelude.catch' with a similar type to 'Control.Exception.catch',
--- except that the "Prelude" version only catches the IO and user
--- families of exceptions (as required by Haskell 98).
>---------------------------------------------------------------
--- We recommend either hiding the "Prelude" version of 'Prelude.catch'
--- when importing "Control.Exception":
>---------------------------------------------------------------
--- > import Prelude hiding (catch)
>---------------------------------------------------------------
--- or importing "Control.Exception" qualified, to avoid name-clashes:
>---------------------------------------------------------------
--- > import qualified Control.Exception as C
>---------------------------------------------------------------
--- and then using @C.catch@
>---------------------------------------------------------------
#ifndef __NHC__
catch :: Exception e
=> IO a -- ^ The computation to run
More information about the Cvs-libraries
mailing list