[GHC] #4359: Implement lambda-case/lambda-if

GHC cvs-ghc at haskell.org
Sat Oct 2 19:57:38 EDT 2010


#4359: Implement lambda-case/lambda-if
---------------------------------+------------------------------------------
    Reporter:  batterseapower    |       Owner:              
        Type:  feature request   |      Status:  new         
    Priority:  normal            |   Component:  Compiler    
     Version:  7.1               |    Keywords:              
    Testcase:                    |   Blockedby:              
          Os:  Unknown/Multiple  |    Blocking:              
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown
---------------------------------+------------------------------------------
 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>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list