Skip to content
Snippets Groups Projects
Commit 4c0c2287 authored by David's avatar David Committed by Sebastian Graf
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 eccba6d1
No related branches found
No related tags found
No related merge requests found
Pipeline #92469 failed
Showing
with 490 additions and 138 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