Skip to content

matching with record syntax in let and case expressions breaks indentationΒ #12

@gomain

Description

@gomain

In let and case expressions

test1 a
  = let { x } = a
    in x -- parse error from here

test2 a
  = let { x: y } = a
    in y -- parse error from here

test3 a
  = case a of
    { x }
      -> x -- parse error from here

test4 a 
  = case a of
    { x: y }
      -> y -- parse error from here

In function argument it works fine

test { x }
  = x -- this works

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