[GHC] #10988: Suggest LambdaCase

#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

#10988: Suggest LambdaCase -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Compiler | Version: 7.10.2 (Parser) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | parser/should_fail/ParserNoLambdaCase Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * testcase: => parser/should_fail/ParserNoLambdaCase Comment: HEAD, as well as 7.8.4, shows: {{{ Test.hs:3:8: parse error on input ‘case’ }}} See e2b579e8d77357e8b36f57d15daead101586ac8e (#10498). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10988#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10988: Suggest LambdaCase -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: closed Priority: high | Milestone: 8.0.1 Component: Compiler | Version: 7.10.2 (Parser) | Resolution: duplicate | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | parser/should_fail/ParserNoLambdaCase Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by goldfire): * status: new => closed * resolution: => duplicate Comment: Ah. Although I forgot to say so on the ticket, I tested against HEAD. But it's a slightly old HEAD. I guess this is fixed. Thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10988#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC