elm / error-message-catalog

A catalog of broken Elm programs / data to improve error messages
BSD 3-Clause "New" or "Revised" License
174 stars 17 forks source link

Improve error when using type alias instead of type #343

Open dullbananas opened 4 years ago

dullbananas commented 4 years ago
type alias Type
    = A
    | B

the error could be improved:

I ran into an unexpected symbol:

17|     | B

I was not expecting to see a | here. Try deleting it? Maybe I can give a better hint from there?
github-actions[bot] commented 4 years ago

Thanks for reporting this! To set expectations:

Finally, please be patient with the core team. They are trying their best with limited resources.