[GHC] #10732: Legal Bang Patterns cannot parse

GHC ghc-devs at haskell.org
Mon Aug 3 23:42:20 UTC 2015


#10732: Legal Bang Patterns cannot parse
-------------------------------------+-------------------------------------
              Reporter:  rem         |             Owner:
                  Type:  bug         |            Status:  new
              Priority:  normal      |         Milestone:
             Component:  Compiler    |           Version:  7.8.3
  (Parser)                           |
              Keywords:  Bang        |  Operating System:  Unknown/Multiple
  Pattern Parser                     |
          Architecture:              |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
             Test Case:              |        Blocked By:
              Blocking:              |   Related Tickets:
Differential Revisions:              |
-------------------------------------+-------------------------------------
 According to the syntax provided by GHC user guide

 pat ::= !pat

 Both !!pat and pat : !pat should be accepted, but GHC gives parsing error.
 For detail see http://stackoverflow.com/questions/31790327/where-can-
 bangpatterns-appear

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


More information about the ghc-tickets mailing list