Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
e9ab31d9
Commit
e9ab31d9
authored
Oct 20, 2012
by
ian@well-typed.com
Browse files
Remove out-of-date docs about Prelude.catch; fixes #7348
parent
021a0f97
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/base/Control/Exception/Base.hs
View file @
e9ab31d9
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment