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

Desugaring of as-patterns in let bindings are insufficiently strict. #178

Open
expipiplus1 opened this issue Jan 19, 2023 · 0 comments
Open

Comments

@expipiplus1
Copy link

For example:

  • original: let a@1 = 2 in a -> pattern match failure
  • with dsPatX: let {1 = 2; a_0 = 1} in a_0 -> 1
  • with dsPat': let {a_0 = 2; 1 = a_0} in a_0 -> 2

This should actually be something like let a = case 2 of 1 -> 2 in a (which is actually what is generated for the pattern synonym case.

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