[GHC] #10354: ApiAnnotations : parens around a context with wildcard loses annotations

GHC ghc-devs at haskell.org
Sat Apr 25 11:03:35 UTC 2015


#10354: ApiAnnotations : parens around a context with wildcard loses annotations
-------------------------------------+-------------------------------------
        Reporter:  alanz             |                   Owner:  alanz
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.10.1
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |  ApiAnnotations
 Type of failure:  None/Unknown      |            Architecture:
      Blocked By:                    |  Unknown/Multiple
 Related Tickets:                    |               Test Case:
                                     |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by alanz):

 It seems `RdrHsSyn.checkContext` is the culprit

 {{{#!hs
 ...
   check (HsParTy ty)    -- to be sure HsParTy doesn't get into the way
     = check (unLoc ty)
 ...
 }}}

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


More information about the ghc-tickets mailing list