Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Oct 19, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented Oct 19, 2023

   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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants