[GHC] #8927: Multiple case match at once
GHC
ghc-devs at haskell.org
Tue Mar 25 15:10:31 UTC 2014
#8927: Multiple case match at once
-------------------------------------------+-------------------------------
Reporter: vxanica | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler (Parser) | Version: 7.6.3
Keywords: case, multiple | Operating System:
Architecture: Unknown/Multiple | Unknown/Multiple
Difficulty: Easy (less than 1 hour) | Type of failure:
Blocked By: | None/Unknown
Related Tickets: | Test Case:
| Blocking:
-------------------------------------------+-------------------------------
In F# we can do
{{{
#!div style="font-size: 120%"
{{{#!haskell
match x with
| 1 | 2 | 3 -> "123"
| 4 | 5 | 6 -> "456"
}}}
}}}
It will be nice if we have an extension which allows us to do
{{{
#!div style="font-size: 120%"
{{{#!haskell
case x of
1 | 2 | 3 -> "123"
4 | 5 | 6 -> "456"
}}}
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8927>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list