Skip to content
Snippets Groups Projects
Commit 38757c30 authored by David's avatar David Committed by Marge Bot
Browse files

Implement Or Patterns (#22596)


This commit introduces a new language extension, `-XOrPatterns`, as described in
GHC Proposal 522.

An or-pattern `pat1; ...; patk` succeeds iff one of the patterns `pat1`, ...,
`patk` succeed, in this order.

See also the summary `Note [Implmentation of OrPatterns]`.

Co-Authored-By: default avatarSebastian Graf <sgraf1337@gmail.com>
parent 18f63970
No related branches found
No related tags found
No related merge requests found
Showing
with 530 additions and 140 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment