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

GHC ghc-devs at haskell.org
Tue Sep 3 13:37:08 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 simonpj):

 Yes, I think I prefer the `HsPar` approach.  Moreover, if we were to
 display the output of the renamer then this program
 {{{
 f x = g [qq| ...blah... |] x
 }}}
 would display, after renaming, as
 {{{
 f x = g (...expanded quote...) x
 }}}
 where the parens are actively helpful in parsing!

 Let's do that.  Thanks.

 Simon

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




More information about the ghc-tickets mailing list