[GHC] #10256: parser: API Annotations : squals does not annotate commas properly

GHC ghc-devs at haskell.org
Tue Apr 7 13:49:36 UTC 2015


#10256: parser: API Annotations : squals does not annotate commas properly
-------------------------------------+-------------------------------------
              Reporter:  alanz       |             Owner:  alanz
                  Type:  bug         |            Status:  new
              Priority:  normal      |         Milestone:  7.10.2
             Component:  Compiler    |           Version:  7.10.1
  (Parser)                           |  Operating System:  Unknown/Multiple
              Keywords:              |   Type of failure:  None/Unknown
  ApiAnnotations                     |        Blocked By:
          Architecture:              |   Related Tickets:
  Unknown/Multiple                   |
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------
 The `squals` production includes

 {{{
     | squals ',' qual
              {% addAnnotation (gl $ head $ unLoc $1) AnnComma (gl $2) >>
                 return (sLL $1 $> ($3 : unLoc $1)) }
 }}}

 The `AnnComma` should be attached to `(gl $ last $ unLoc $1)`, rather than
 the head.

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


More information about the ghc-tickets mailing list