Ticket #5418 (closed bug: duplicate)

Opened 22 months ago

Last modified 22 months ago

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 Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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

Changed 22 months 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.

Simon

Changed 22 months ago by YitzGale

  • status changed from new to closed
  • resolution set to duplicate

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.