[project @ 2001-05-04 14:56:53 by simonmar]
authorsimonmar <unknown>
Fri, 4 May 2001 14:56:53 +0000 (14:56 +0000)
committersimonmar <unknown>
Fri, 4 May 2001 14:56:53 +0000 (14:56 +0000)
commitdfbbfedc7e68d3095a37e4359b69eccc27e5398c
treede731c034ed7b3fddaca984eecfddec89d5e8fff
parent42cbdbec0bab366311ba6abb5c93928e93750092
[project @ 2001-05-04 14:56:53 by simonmar]
- only read ~/.ghci if it is owned by the current user and isn't
  writable by anyone else.

- Only read ./.ghci if both . and ./.ghci are owned by the current
  user and aren't writable by anyone else.  I think this is
  sufficient: we don't need to check .. and ../.. etc. because "."
  always refers to the same directory while a process is running.

- Don't load .so libraries in a package if that package is already
  linked with GHCi.  This stops us re-linking libm, libreadline etc.

- Allow packages to be loaded from within GHCi using
:set -package <name>
  NOTE: this will unload all modules currently loaded into the
  interpreter.  I did this to be on the safe side - I think perhaps
  it isn't necessary, but I haven't thought it through fully yet.

- fix CompManager.cmUnload in the process.  It was wrong in several
  ways.

MERGE WITH 5.00
ghc/compiler/compMan/CompManager.lhs
ghc/compiler/ghci/InteractiveUI.hs