[GHC] #10209: parser: opt_kind_sig has incorrect SrcSpan

GHC ghc-devs at haskell.org
Sun Mar 29 14:37:23 UTC 2015


#10209: parser: opt_kind_sig has incorrect SrcSpan
-------------------------------------+-------------------------------------
        Reporter:  alanz             |                   Owner:  alanz
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.10.1
  (Parser)                           |                Keywords:
      Resolution:                    |  ApiAnnotations
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  Other             |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by alanz):

 It may be necessary to change

 {{{#!hs
 type HsKind name = HsType name
 }}}

 {{{#!hs
 type HsKind name = LHsType name
 }}}

 So that the '::' can be annotated separately from the kind. Otherwise we
 have a problem for

 {{{#!hs
 HsTyVar name
 }}}

 where we have been using the surrounding span for the annotation.

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


More information about the ghc-tickets mailing list