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 variables not highlighted in visible type application #73

Closed
sheaf opened this issue Nov 5, 2018 · 0 comments
Closed

Type variables not highlighted in visible type application #73

sheaf opened this issue Nov 5, 2018 · 0 comments

Comments

@sheaf
Copy link
Collaborator

sheaf commented Nov 5, 2018

Type variables within a visible type application are not highlighted.

type_variable_in_visible_type_application

This requires disambiguating between visible type application and as-patterns. Quoting Richard Eisenberg:

With -XTypeApplications on, the character immediately before an @ determines how it is lexed.

  1. If the character is a legal end-of-identifier character (respecting the state of the -XMagicHash flag), then the @ is an as-pattern.
  2. Otherwise, then the @ is the beginning of a type application.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant