Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ianbollinger opened this issue Jul 26, 2016 · 2 comments

Comments

@ianbollinger
Copy link
Contributor

ianbollinger commented Jul 26, 2016

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?

@nwolverson
Copy link
Contributor

I suspect type might be highlighted differently because this grammar was ported from Haskell which doesn't have bare record types.

Worth pointing out I think that for the data case above in Atom I see 2 distinct colours for fields vs types, though on GitHub it's rendered as the same.

@wclr
Copy link
Contributor

wclr commented Sep 5, 2021

This should not be the case anymore can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants