Skip to content

Problem parsing == in expressions in REPL #1736

Open
@rtfeldman

Description

@rtfeldman

If you try to use == in a top-level elm repl expression, and don't wrap it in parens, you now get a parse error.

SSCCE

False : Bool
> 3 == 4
-- PARSE ERROR ------------------------------------------------------------- elm

Something went wrong while parsing your code.

3| 3 == 4
   ^
I was expecting:

  - a declaration, like `x = 5` or `type alias Model = { ... }`
  - the `import` keyword
  - a doc comment, like {-| this -}
> (3 == 4)
False : Bool

3 == 4 works as expected in 0.18 elm repl.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions