#5379: Scoping error in Template Haskell antiquotations
---------------------------------+------------------------------------------
    Reporter:  reinerp           |       Owner:              
        Type:  bug               |      Status:  new         
    Priority:  normal            |   Component:  Compiler    
     Version:  7.0.4             |    Keywords:              
    Testcase:                    |   Blockedby:              
          Os:  Unknown/Multiple  |    Blocking:              
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by simonpj@…):

 commit 46c19a89d410910bc224a4a8566e506e52b36e43
 {{{
 Author: Simon Peyton Jones <[email protected]>
 Date:   Fri Aug 5 15:29:44 2011 +0100

     Another run at binders in Template Haskell (fixes Trac #5379)

     TH quotation was using mkName rather than newName for
     top-level definitions, which is plain wrong as #5379
     points out.

  compiler/basicTypes/RdrName.lhs |    4 +-
  compiler/deSugar/DsMeta.hs      |   28 ++++---------------------
  compiler/hsSyn/Convert.lhs      |    9 ++++---
  compiler/iface/MkIface.lhs      |    2 +-
  compiler/rename/RnEnv.lhs       |   42
 ++++++++++++++++++--------------------
  5 files changed, 33 insertions(+), 52 deletions(-)
 }}}

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to