[project @ 2000-07-05 17:01:59 by simonmar]
authorsimonmar <unknown>
Wed, 5 Jul 2000 17:01:59 +0000 (17:01 +0000)
committersimonmar <unknown>
Wed, 5 Jul 2000 17:01:59 +0000 (17:01 +0000)
commitb2d52fc99933253305c2ec7bba71fa743f2bc0b8
treeaadbdd4a6e3fc4ed4acc794a2e3c9e5aced49895
parent8d5bf65c745546ce36fad5e09bfd94f38cd62119
[project @ 2000-07-05 17:01:59 by simonmar]
Packages can now be added/removed from an installed GHC as follows:

    $ ./ghc-inplace --list-packages
    gmp, rts, std, lang, concurrent, data, net, posix, text, util,
    hssource, win32, com, std2
    $ ./ghc-inplace --add-package <newpkg
    Reading package info from stdin... done.
    Saving old package config file... done.
    Writing new package config file... done.
    $ ./ghc-inplace --list-packages
    gmp, rts, std, lang, concurrent, data, net, posix, text, util,
    hssource, win32, com, std2, mypkg
    $ ./ghc-inplace --delete-package mypkg
    Saving old package config file... done.
    Writing new package config file... done.
    $ ./ghc-inplace --list-packages
    gmp, rts, std, lang, concurrent, data, net, posix, text, util,
    hssource, win32, com, std2

This is a first stab at the kind of functionality we need for
installing Haskell libraries via RPMs: the RPM script would install
the libraries, and then do a "ghc --add-package" passing the
appropriate paths.  You'd then have "ghc -package" at your disposal to
use the newly installed package.  Similarly on de-install, the RPM
script would run "ghc --delete-package".

Also in this commit: prettify the package dumping.
ghc/driver/Main.hs
ghc/driver/Package.hs
ghc/driver/PackageSrc.hs