Open varosi opened 5 years ago
Note: it's better to use tweag/ghc to report such issues.
There is already a conversation on error messages, by the way: tweag/ghc#5 .
The short story is: error messages are still not good, and certainly not definitive.
I've got issues with things like “more than once”, though:
if b then x else x
not “using” x
more than once?Unrestricted x
“using” x
more than once?p
, what would the message be in that case?Then may be: "not exactly once" ?
In the ideal case there could be different error messages for different groups of errors, so they sound understandable for the average haskeller.
A proposal about error message:
Is it possible to show a simpler error message in such cases, as:
It'll be more understandable by more people.