FIX #2049, another problem with the module context on :reload
authorSimon Marlow <simonmar@microsoft.com>
Mon, 21 Jan 2008 14:59:35 +0000 (14:59 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Mon, 21 Jan 2008 14:59:35 +0000 (14:59 +0000)
commiteea143f8588519000033279518877f85180b3e0f
tree3e71616d187e27eb7a5a25a63c344e8e166ed096
parent954804ab61ee91361bb344b09dfe850caacc232b
FIX #2049, another problem with the module context on :reload
The previous attempt to fix this (#1873, #1360) left a problem that
occurred when the first :load of the program failed (#2049).

Now I've implemented a different strategy: between :loads, we remember
all the :module commands, and just replay them after a :reload.  This
is in addition to remembering all the package modules added with
:module, which is orthogonal.

This approach is simpler than the previous one, and seems to do the
right thing in all the cases I could think of.  Let's hope this is the
last bug in this series...
compiler/ghci/GhciMonad.hs
compiler/ghci/InteractiveUI.hs