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

Inconsistent highlighting of type annotations with binder arrows #50

Open
milesfrain opened this issue Feb 26, 2020 · 0 comments
Open

Comments

@milesfrain
Copy link
Member

Edit: This seems to be the same issue as #11. Was that resolved?

Type annotation highlight color is different between these equivalent lines in foo and foo2:

  (i :: Array Int) <- bar
  i :: Array Int <- bar

Not a major issue, but I assume the types should be highlighted the same color if they have the same meaning.

Full example:

import Data.Array ((..))

bar :: Array (Array Int)
bar = do
  i :: Int <- 1 .. 5
  pure [i]

foo :: Array (Array Int)
foo = do
  (i :: Array Int) <- bar
  pure i

foo2 :: Array (Array Int)
foo2 = do
  i :: Array Int <- bar
  pure i

VS Code screenshot:
image

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

1 participant