diff options
author | Simon Marlow <simonmar@microsoft.com> | 2006-09-19 01:24:48 +0000 |
---|---|---|
committer | Simon Marlow <simonmar@microsoft.com> | 2006-09-19 01:24:48 +0000 |
commit | ee565d464248078a4f2d46f98667aa4fcdc56db4 (patch) | |
tree | 518b8c0b51f202fedd0d6047d3b1390872e7c3ec /compiler/main/CodeOutput.lhs | |
parent | 891cd3033ad62b47209f8098297f3bc774b7113a (diff) | |
download | haskell-ee565d464248078a4f2d46f98667aa4fcdc56db4.tar.gz |
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.
Diffstat (limited to 'compiler/main/CodeOutput.lhs')
-rw-r--r-- | compiler/main/CodeOutput.lhs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/CodeOutput.lhs b/compiler/main/CodeOutput.lhs index 30f273ebaa..06e1ee785f 100644 --- a/compiler/main/CodeOutput.lhs +++ b/compiler/main/CodeOutput.lhs @@ -126,7 +126,7 @@ outputC dflags filenm mod location flat_absC -- * -#include options from the cmdline and OPTIONS pragmas -- * the _stub.h file, if there is one. -- - pkg_configs <- getExplicitPackagesAnd dflags packages + pkg_configs <- getPreloadPackagesAnd dflags packages let pkg_names = map (showPackageId.package) pkg_configs c_includes <- getPackageCIncludes pkg_configs |