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

GHC cvs-ghc at haskell.org
Fri Aug 31 23:13:58 CEST 2012


#4359: Implement lambda-case/lambda-if
-------------------------------+--------------------------------------------
  Reporter:  batterseapower    |          Owner:  simonmar        
      Type:  feature request   |         Status:  closed          
  Priority:  high              |      Milestone:  7.6.1           
 Component:  Compiler          |        Version:  7.1             
Resolution:  fixed             |       Keywords:                  
        Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown      |     Difficulty:  Unknown         
  Testcase:                    |      Blockedby:                  
  Blocking:                    |        Related:                  
-------------------------------+--------------------------------------------

Comment(by guest):

 Indendation problem:

 {{{
 {-# LANGUAGE MultiWayIf #-}
 x = if | False -> if | False -> 1
                      | False -> 2
        | True -> 3
 }}}

 should be 3, but currently is parsed as:

 {{{
 {-# LANGUAGE MultiWayIf #-}
 x = if | False -> if | False -> 1
                      | False -> 2
                      | True -> 3
 }}}

 which fails.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4359#comment:89>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list