#4127: Template haskell instance declaration quotations with members don't work in ghci ---------------------------------+------------------------------------------ Reporter: lilac | Owner: Type: bug | Status: closed Priority: normal | Milestone: 6.14.1 Component: Template Haskell | Version: 6.12.1 Resolution: fixed | Keywords: Difficulty: | Os: Unknown/Multiple Testcase: ghci/scripts/T4127 | Architecture: Unknown/Multiple Failure: None/Unknown | ---------------------------------+------------------------------------------ Changes (by simonpj):
* status: new => closed * testcase: => ghci/scripts/T4127 * resolution: => fixed Comment: Excellent point. You've flushed out a long-lurking bug -- thank you. Fixed by {{{ Tue Jun 15 08:06:26 BST 2010 simo...@microsoft.com * Fix Trac #4127: build GlobalRdrEnv in GHCi correctly GHCi was building its GlobalRdrEnv wrongly, so that the gre_par field was bogus. That in turn fooled the renamer. The fix is easy: use the right function! Namely, call RnNames.gresFromAvail rather than availsToNameSet. M ./compiler/main/GHC.hs -1 +1 M ./compiler/main/InteractiveEval.hs -18 +14 M ./compiler/rename/RnNames.lhs -1 +2 }}} I added a regression test too. Simon -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4127#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs