Skip to content

Type synonym records and data type records are highlighted differently #25

Description

@ianbollinger
data Rectangle = Rectangle
  { x :: Int
  , y :: Int
  , width :: Int
  , height :: Int
  }

...has its fields names highlighted differently than...

type Rectangle =
  { x :: Int
  , y :: Int
  , width :: Int
  , height :: Int
  }

The double colon is also highlighted in the former but not the latter.

EDIT: Also, if fields are highlighted specially on data type declaration, should they also be highlighted in pattern matches, and in record construction and update?

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions