[GHC] #4359: Implement lambda-case/lambda-if
GHC
cvs-ghc at haskell.org
Sun Oct 3 08:47:56 EDT 2010
#4359: Implement lambda-case/lambda-if
---------------------------------+------------------------------------------
Reporter: batterseapower | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by igloo):
The motivating examples seem to be of the form
{{{
getArgs >>= case of
[] -> error "No args"
fs -> doit fs
}}}
so I wonder if a better extension would be:
{{{
mcase getArgs of
[] -> error "No args"
fs -> doit fs
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4359#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list