[GHC] #7918: SrcSpan's associated with expanded quasi-quotes are inconsistent

GHC ghc-devs at haskell.org
Tue Sep 3 12:07:52 CEST 2013


#7918: SrcSpan's associated with expanded quasi-quotes are inconsistent
-----------------------------------------+---------------------------------
        Reporter:  edsko                 |            Owner:  edsko
            Type:  bug                   |           Status:  new
        Priority:  high                  |        Milestone:  7.8.1
       Component:  Compiler              |          Version:  7.7
      Resolution:                        |         Keywords:
Operating System:  Unknown/Multiple      |     Architecture:
 Type of failure:  None/Unknown          |  Unknown/Multiple
       Test Case:  quasiquotation/T7918  |       Difficulty:  Unknown
        Blocking:                        |       Blocked By:
                                         |  Related Tickets:
-----------------------------------------+---------------------------------

Comment (by edsko):

 So actually I agreed with you that the special case was undesirable, which
 is why I had (for types, not yet for expressions) got rid of rnHsType
 completely, and defined only rnLHsType. This way the exceptions you
 mention are taken care off statically, which is much better.

 Your suggestion is an alternative; I thought about it but I thought I'd
 need to add a new constructor to HsExpr/HsType/Pat/..; didn't realize that
 I could use the constructor for parens. Do you prefer I use HsPar and co
 instead of removing rnHsExpr (rnHsType, ..)? It certainly would be a less
 intrusive change I guess.

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




More information about the ghc-tickets mailing list