Skip to content

missing "where" gives unclear error message

module Main data Foo = Foo

/tmp/foo.hs:2:0: parse error on input `data'

It would be nice to say what was wrong (if there is a long comment after the module declaration, it can be difficult to spot what's missing)

Trac metadata
Trac field Value
Version 7.0.3
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler (Parser)
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