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

No hint that you've defined a type that you're now confusing with another type #358

Open ghost opened 9 months ago

ghost commented 9 months ago
   Detected problems in 1 module.
   -- TOO MANY ARGS ------------------------------------------------------ Main.elm

   The `Result` type needs 0 arguments, but I see 2 instead:

   64|     | ReadingUploaded (Result Http.Error ())
                              ^^^^^^^^^^^^^^^^^^^^
   Which are the extra ones? Maybe some parentheses are missing?

I was wondering what Result type is this that needs 0 arguments? Result.Result works. Turns out I'd forgotten I'd defined my own Result type (in Main.elm). It would have been helpful if it'd helped me to remember this (eg I'd been pointed to its definition).