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

Add keywords for ~, ! #145

Closed
sheaf opened this issue May 1, 2020 · 1 comment
Closed

Add keywords for ~, ! #145

sheaf opened this issue May 1, 2020 · 1 comment

Comments

@sheaf
Copy link
Collaborator

sheaf commented May 1, 2020

The GHC proposal about simplifying parsing of ~ and ! contains a nice overview of some reserved operators:

  • ~ for lazy patterns,
  • ! for strict patterns,
  • @ for type applications and record at syntax,
  • (# and #) for unboxed tuples,
  • $ and $$ for Template Haskell splices,
  • - for prefix negation
  • . for forall quantification and module qualification,
  • ? for implicit parameters,
  • # for magic hash, overloaded labels, CPP.

Handling everything is going to be tricky, but handling ~ and ! seems like a reasonable task.

@sheaf
Copy link
Collaborator Author

sheaf commented May 7, 2020

Added ~ and ! prefix operators in 9b21f6d, and made the logic surrounding symbolic operators (including reserved ones) more consistent.

@sheaf sheaf closed this as completed May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant