Fix Trac #4127: build GlobalRdrEnv in GHCi correctly
authorsimonpj@microsoft.com <unknown>
Tue, 15 Jun 2010 07:06:26 +0000 (07:06 +0000)
committersimonpj@microsoft.com <unknown>
Tue, 15 Jun 2010 07:06:26 +0000 (07:06 +0000)
commit0c41772cba7ec3f558cd2619716c7db771eae935
tree2cd13daa798e11c728bb97b4c7539b80e8ac871a
parent617a845f9574185f71db0cad7cfcb2e54fcb9db4
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.
compiler/main/GHC.hs
compiler/main/InteractiveEval.hs
compiler/rename/RnNames.lhs