elm / error-message-catalog

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

Tell user explicitly that they're trying to use a type as a constructor #222

Closed drathier closed 6 years ago

drathier commented 7 years ago

If you have a type T = T A and you try to construct T using T, having imported the type but not the constructor, you get asked if you ment to use the constructor T instead, but there's no mention that you're trying to use a type as a constructor. Since they're sharing the same name, it took a while to figure out what happened.

evancz commented 6 years ago

I need an http://sscce.org/ to verify that I have fixed things like this.

I kinda get what you mean, but I'd need a new issue to check.