Skip to content

Error for misplaced equal sign can be more descriptive #1536

Open

Description

@codeworld-feedback

Program: https://code.world/#Pjq5_rYGZkWwz0CsSvJQkTg

Message:

program.hs:1:43: error:
    parse error on input =
    An equation does not fit here. Is this line indented incorrectly?

Activity

  1. cdsmith commented on Oct 26, 2021

    @cdsmith
    Collaborator

    The error occurs because of an '=' sign that's part of a previous equation. The problem isn't indentation, but rather a missing newline. The error could say something like "A group of equations must be on different lines, all indented the same amount." Worth thinking about.

  2. changed the title [-]User-reported unhelpful error message[/-] on Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    error-messageError message that could be better

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions