Packages cleanup, and allow new packages to be loaded with :set again
authorSimon Marlow <simonmar@microsoft.com>
Tue, 19 Sep 2006 01:24:48 +0000 (01:24 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 19 Sep 2006 01:24:48 +0000 (01:24 +0000)
commitee565d464248078a4f2d46f98667aa4fcdc56db4
tree518b8c0b51f202fedd0d6047d3b1390872e7c3ec
parent891cd3033ad62b47209f8098297f3bc774b7113a
Packages cleanup, and allow new packages to be loaded with :set again

This cleans up the package subsystem a little.  There are some
changes to the GHC API as a result.

  - GHC.init and GHC.initFromArgs are no longer necessary.

  - GHC.newSession takes the root of the GHC tree as an argument
    (previously passed to GHC.init).

  - You *must* do GHC.setSessionDynFlags after GHC.newSession,
    this is what loads the package database.

  - Several global vars removed from SysTools

  - The :set command in GHCi can now cause new packages to be loaded,
    or can hide/ignore existing packages.
compiler/ghci/InteractiveUI.hs
compiler/ghci/Linker.lhs
compiler/main/CodeOutput.lhs
compiler/main/DriverPipeline.hs
compiler/main/DynFlags.hs
compiler/main/GHC.hs
compiler/main/Main.hs
compiler/main/Packages.lhs
compiler/main/SysTools.lhs