[GHC] #11189: bang pattern parsing inconsistency

#11189: bang pattern parsing inconsistency -------------------------------------+------------------------------------- Reporter: osa1 | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.11 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: -------------------------------------+------------------------------------- {{{#!haskell -- Works f2 (!x, !y) = [x, y] -- Parse error on input '!' len1 lst = case lst of [] -> 0 (!x : !xs) -> 1 + len1 xs -- Parse error on input '!' len2 [] = 0 len2 (!x : !xs) = 1 + len xs }}} Tried with: HEAD, 7.10.2. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11189 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11189: bang pattern parsing inconsistency -------------------------------------+------------------------------------- Reporter: osa1 | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): That's odd... have you investigated at all? Thanks for identifying this. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11189#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11189: bang pattern parsing inconsistency -------------------------------------+------------------------------------- Reporter: osa1 | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.11 (Parser) | Resolution: duplicate | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #10732 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => duplicate * component: Compiler => Compiler (Parser) * related: => #10732 Comment: This parses: {{{ len3 (!x : (!xs)) = 1 + len xs }}} Anyway, duplicate of #10732. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11189#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11189: bang pattern parsing inconsistency -------------------------------------+------------------------------------- Reporter: osa1 | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.11 (Parser) | Resolution: duplicate | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #10732 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): I doubt this is hurting anyone much, but it'd be great to fix it. Any volunteers? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11189#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC