Skip to content

Non-punning record field patterns #418

@LightAndLight

Description

@LightAndLight

Currently I can only pattern match on a record by punning its fields:

case x of
  { a, b, c } -> ...

I want to choose which fields to pun and which fields to assign custom names:

case x of
  { a, b = renamed, c } -> ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions