Opened 6 years ago

Closed 6 years ago

#5418 closed bug (duplicate)

Constructor import error message suggests invalid syntax

Reported by: YitzGale Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.2.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Other Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


In module `Data.List.NonEmpty':
  `:|' is a data constructor of `NonEmpty'
To import it use
  `import Data.List.NonEmpty (NonEmpty (:|))'
or ...

That is not a very good suggestion, since it won't compile. It should be:

  `import Data.List.NonEmpty (NonEmpty ((:|)))'

Change History (2)

comment:1 Changed 6 years ago by simonpj

You don't give a test case so it's hard to be sure, but this looks like dup of #5385, and hence already fixed. If not, please do re-open (with a repro case). Many thanks.


comment:2 Changed 6 years ago by YitzGale

Resolution: duplicate
Status: newclosed

Yes it's a dup of #5385. Thanks for fixing so promptly, and sorry I didn't notice the dup.

Note: See TracTickets for help on using tickets.