Skip to content

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

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions