[GHC] #10988: Suggest LambdaCase

GHC ghc-devs at haskell.org
Mon Oct 19 19:41:35 UTC 2015


#10988: Suggest LambdaCase
-------------------------------------+-------------------------------------
           Reporter:  goldfire       |             Owner:
               Type:  bug            |            Status:  new
           Priority:  high           |         Milestone:  8.0.1
          Component:  Compiler       |           Version:  7.10.2
  (Parser)                           |
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 When I say

 {{{#!hs
 module Bug where

 foo = \case True -> False
             False -> True
 }}}

 I get

 {{{
 Bug.hs:9:7: error: parse error: naked lambda expression ''
 }}}

 We can do far better. Setting priority to high because it's rather
 embarrassing to let your lambdas run around naked.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10988>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list