Ticket #4058 (closed feature request: fixed)

Opened 3 years ago

Last modified 2 years ago

improve error message: Module `System.IO' does not export `LineBuffering'

Reported by: simonmar Owned by:
Priority: normal Milestone: 7.0.2
Component: Compiler Version: 6.12.2
Keywords: Cc: merehap@…, michal.terepeta@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Easy (less than 1 hour)
Test Case: Blocked By:
Blocking: Related Tickets:

Description

LineBuffering is a constructor, and System.IO definitely does export it. A more helpful error message might be

`LineBuffering' is a constructor in the data type `BufferMode`,
  to import it use 
    import System.IO (BufferMode(LineBuffering))
  or
    import System.IO (BufferMode(..))

(adapted from a suggestion by John Launchbury)

Attachments

fix-whitespace_layout-in-rnnames_.dpatch.gz Download (92.5 KB) - added by michalt 3 years ago.
Patch fixing whitespace/layout in RnNames?.lhs (sorry for compressing it but the attachment size limit is only 256KB).
improve-error-message-when-importing-data-constructors-_ticket-_4058__.dpatch Download (10.3 KB) - added by michalt 2 years ago.
Small improvement of the error message.
update-test-mod90-with-the-new-error-message_.dpatch Download (100.8 KB) - added by michalt 2 years ago.
Update test mod90.

Change History

Changed 3 years ago by merehap

  • cc merehap@… added

Changed 3 years ago by michalt

Patch fixing whitespace/layout in RnNames?.lhs (sorry for compressing it but the attachment size limit is only 256KB).

Changed 3 years ago by michalt

  • cc michal.terepeta@… added
  • status changed from new to patch

Changed 2 years ago by michalt

Small improvement of the error message.

Changed 2 years ago by michalt

Update test mod90.

Changed 2 years ago by igloo

  • milestone changed from 7.0.1 to 7.0.2

Changed 2 years ago by igloo

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

Applied, thanks!

Note: See TracTickets for help on using tickets.