Skip to content

Broken pattern replacement on partial error message #1556

Open

Description

@codeworld-feedback

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

Comment:

44tttes5s56tyhtyzt

Message:

program.hs:1:19-22: error: 
    Variable not in scope: text :: Text
    Perhaps you meant to put quotation marks around this text. -> Picture

Activity

  1. changed the title [-]User-reported unhelpful error message[/-] on Dec 29, 2021
  2. cdsmith commented on Dec 29, 2021

    @cdsmith
    Collaborator

    The variable not in scope has type Text -> Picture, but the rewriter sees foo :: Text and ends up missing the -> Picture but, leaving a very confusingly mangled message.

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

    bugerror-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