Skip to content

Constructor import error message suggests invalid syntax

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 ((:|)))'
Trac metadata
Trac field Value
Version 7.2.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information