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

Pattern Matching: Support "or" patterns #264

Closed
ospencer opened this issue Aug 22, 2020 · 0 comments · Fixed by #1173
Closed

Pattern Matching: Support "or" patterns #264

ospencer opened this issue Aug 22, 2020 · 0 comments · Fixed by #1173

Comments

@ospencer
Copy link
Member

This is the ability to match variants within a subpattern, like the "or" pattern P | Q in this example:

data Foo = Foo(Bar)
data Bar = P | Q

match(...) {
  | Foo(P | Q) => ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
1 participant