Clarify error message when missing GADTs extension
If we write a GADT declaration and forget to enable GADTs
we get the following error message:
ww.hs:1:1: error:
• Illegal generalised algebraic data declaration for ‘T’
(Use GADTs to allow GADTs)
• In the data declaration for ‘T’
It could be made more explicit for new users that the suggestion is to use the extension GADTs
.
Trac metadata
Trac field | Value |
---|---|
Version | 8.2.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |