[GHC] #4359: Implement lambda-case/lambda-if
GHC
cvs-ghc at haskell.org
Wed Oct 6 04:13:39 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
---------------------------------+------------------------------------------
Description changed by simonpj:
Old description:
> I put together a patch for this Haskell' proposal
> (http://hackage.haskell.org/trac/haskell-prime/ticket/41)
>
> Prelude> (if then "Haskell" else "Cafe") False
> "Cafe"
> Prelude> (case of 1 -> "One"; _ -> "Not-one") 1
> "One"
>
> There seems to be some support for integrating this proposal into GHC
> (see http://permalink.gmane.org/gmane.comp.lang.haskell.cafe/81366)
>
> The attached patches implement the feature, test it and document it.
New description:
I put together a patch for this Haskell' proposal
(http://hackage.haskell.org/trac/haskell-prime/ticket/41)
{{{
Prelude> (if then "Haskell" else "Cafe") False
"Cafe"
Prelude> (case of 1 -> "One"; _ -> "Not-one") 1
"One"
}}}
There seems to be some support for integrating this proposal into GHC (see
http://permalink.gmane.org/gmane.comp.lang.haskell.cafe/81366)
The attached patches implement the feature, test it and document it.
--
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4359#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list