Opened 6 years ago

Closed 6 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 Rev(s):
Wiki Page:


With the following import statement:

import Data.Sequence((:<))

GHC provides the error:

    In module `Data.Sequence':
      `:<' is a data constructor of `ViewL'
    To import it use
      `import Data.Sequence (ViewL (:<))'
      `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 6 years ago by michalt

Resolution: duplicate
Status: newclosed

It's already fixed, see #5385.

Note: See TracTickets for help on using tickets.