Skip to content

base-4.6 does not export `catch` from Prelude while Control.Exception documentation still claims so

From http://hackage.haskell.org/packages/archive/base/4.6.0.0/doc/html/Control-Exception.html#g:5:

Note that the Prelude also exports a function called catch with a similar type to 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 catch when importing Control.Exception:

Prelude doesn't export catch as of base-4.6

Trac metadata
Trac field Value
Version 7.6.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Documentation
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information