Ticket #7348 (closed bug: fixed)

Opened 7 months ago

Last modified 6 months ago

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

Reported by: Dzhus Owned by:
Priority: normal Milestone: 7.6.2
Component: Documentation Version: 7.6.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Documentation bug Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets: 7167

Description

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

Change History

Changed 7 months ago by igloo

  • status changed from new to merge
  • difficulty set to Unknown
  • milestone set to 7.6.2

Thanks for the report; fixed by:

commit de39af230fd59abde8d02f3f6a66373de750a735

Author: Ian Lynagh <ian@well-typed.com>
Date:   Sat Oct 20 00:21:54 2012 +0100

    Remove out-of-date docs about Prelude.catch; fixes #7348

Changed 6 months ago by igloo

  • status changed from merge to closed
  • resolution set to fixed

Merged as ea7f7ef8621dc7fd19ecb3a5e565d10568e36135

Note: See TracTickets for help on using tickets.