Opened 3 years ago

Closed 3 years ago

#5523 closed bug (duplicate)

Mistake in error messages for importing infix constructors

Reported by: ivanm Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.0.4
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

With the following import statement:

import Data.Sequence((:<))

GHC provides the error:

test.hs:1:22:
    In module `Data.Sequence':
      `:<' is a data constructor of `ViewL'
    To import it use
      `import Data.Sequence (ViewL (:<))'
    or
      `import Data.Sequence (ViewL (..))'
Failed, modules loaded: none.

However, that first "fix" isn't correct: it should be:

import Data.Sequence(ViewL((:<)))

(which is a bit of a mouthful :p).

I don't have access to 7.2.1, so I'm not sure if this error still exists.

Change History (1)

comment:1 Changed 3 years ago by michalt

  • Resolution set to duplicate
  • Status changed from new to closed

It's already fixed, see #5385.

Note: See TracTickets for help on using tickets.