[GHC] #8927: Multiple case match at once
GHC
ghc-devs at haskell.org
Tue Feb 16 23:00:23 UTC 2016
#8927: Multiple case match at once
-------------------------------------+-------------------------------------
Reporter: vxanica | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.1-rc2
(Parser) | Keywords: case,
Resolution: | multiple
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: #3919 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by rwbarton):
I like the idea of disambiguating or-patterns and guards with parentheses,
since I expect to be able to use or-patterns compositionally (nested
within a larger pattern) anyways. So for hvr's last example
{{{#!hs
case x of
(False | True) -> "123"
}}}
Don't know if this would cause major problems in the parser.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8927#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list