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?
...has its fields names highlighted differently than...
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?