#4359: Implement lambda-case/lambda-if
-------------------------------+--------------------------------------------
Reporter: batterseapower | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 7.6.1
Component: Compiler | Version: 7.1
Resolution: | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Difficulty: Unknown
Testcase: | Blockedby:
Blocking: | Related:
-------------------------------+--------------------------------------------
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.
See also the wiki page [wiki:LambdasVsPatternMatching].
--
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4359#comment:68>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs