Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • David's avatar
    38757c30
    Implement Or Patterns (#22596) · 38757c30
    David authored and Marge Bot's avatar Marge Bot committed
    
    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>
    38757c30
    History
    Implement Or Patterns (#22596)
    David authored and Marge Bot's avatar Marge Bot committed
    
    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>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.