[project @ 2003-07-21 14:33:19 by simonmar]
authorsimonmar <unknown>
Mon, 21 Jul 2003 14:33:19 +0000 (14:33 +0000)
committersimonmar <unknown>
Mon, 21 Jul 2003 14:33:19 +0000 (14:33 +0000)
commit95f1b72e5398f6d4b694ff7a62e73243dd9a6ee9
treedff6396f1cdd36d217db5eebd1e7ba755114ed3d
parenta38fed411ee18754cede5c410ec94f33001c0af3
[project @ 2003-07-21 14:33:19 by simonmar]
:cd now causes all modules to be unloaded.

This is the easy fix for a problem whereby changing directories will
cause GHC to try to demand-load objects from the wrong place, because
it is using relative pathnames.

It's not obvious what the "right" thing to do is if the user changes
directory with :cd and then does a :reload.  Perhaps the right thing
to do is to make the search path "sticky", so that it stays relative
to the original current directory.  This would probably require some
re-engineering of GHC to only use absolute paths internally.
ghc/compiler/ghci/InteractiveUI.hs