FIX #1617: reloading didn't change the :browse output as it should
authorSimon Marlow <simonmar@microsoft.com>
Wed, 7 Nov 2007 16:14:54 +0000 (16:14 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Wed, 7 Nov 2007 16:14:54 +0000 (16:14 +0000)
commit23e4e1039c16bb30fec04b5006bfc0f4989239d9
tree19015ed84316211c775579712334888226fbb5bc
parent427f3443a432cde66da1e8dde94ef9c5351636da
FIX #1617: reloading didn't change the :browse output as it should
The problem was that because the interface hadn't changed, we were
re-using the old ModIface.  Unfortunately the ModIface contains the
GlobalRdrEnv for the module, and that *had* changed.  The fix is to
put the new GlobalRdrEnv in the ModIface even if the interface has not
otherwise changed.

ModIface is not really the right place for the GlobalRdrEnv, but
neither is ModDetails, so we should think about a better way to do
this.
compiler/iface/MkIface.lhs