Tue Mar 27 15:52:05 PDT 2012 Duncan Coutts
* Convert ghc option construction to use an options record
Using a structured representation of the ghc options rather
than [String] makes it easier to share and reuse the code
for building sets of ghc options, which makes it easier to
add code for calling ghci.
This is based on Sam Anklesaria's GSoC work on "cabal repl"
M ./Cabal/Cabal.cabal +1
M ./Cabal/Distribution/Simple/GHC.hs -182 +170
M ./Cabal/Distribution/Simple/Haddock.hs -42 +50
A ./Cabal/Distribution/Simple/Program/GHC.hs
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Tue Mar 27 16:32:03 PDT 2012 Duncan Coutts
* Break up the component build code a bit
This will make it easier to allow building individual components
M ./Cabal/Distribution/Simple/Build.hs -119 +130
M ./Cabal/Distribution/Simple/LocalBuildInfo.hs +5
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Mar 28 14:45:22 PDT 2012 Duncan Coutts
* Check for the env var GHC_PACKAGE_PATH
Based on the patch by Keegan McAllister
Fixes ticket #335
M ./Cabal/Distribution/Simple/GHC.hs +15
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Mar 28 15:05:56 PDT 2012 Duncan Coutts
* Fix ticket #731
M ./cabal-install/Distribution/Client/Configure.hs -9 +12
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Mar 28 18:08:37 PDT 2012 Duncan Coutts
* Add back deprecated ghcVerbosityOptions and ghcPackageDbOptions
M ./Cabal/Distribution/Simple/GHC.hs +22
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Mar 28 18:46:53 PDT 2012 Duncan Coutts
* head cabal-install requires head Cabal
M ./cabal-install/cabal-install.cabal -1 +1
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Mar 28 19:07:20 PDT 2012 Duncan Coutts
* Extend the --package-db= feature to allow multiple dbs and start from empty
Previously only one --package-db flag was used (later ones overrode earlier).
Internally we can handle stacks of package dbs, now we expose that fully in
the user interface.
--global sets the initial db stack to [GlobalPackageDB]
--user sets the initial db stack to [GlobalPackageDB, UserPackageDB]
--package-db=clear clears the db stack to []
--package-db=global pushes GlobalPackageDB on the top of the stack
--package-db=user pushes UserPackageDB on the top of the stack
--package-db=${file} pushes SpecificPackageDB ${file} on the top of the stack
So --global and --user just affect the initial db stack, and this can be
extended by the --package-db flag, or reset using --package-db=clear.
Note that although this lets users tell cabal to avoid using the global
package db, we cannot yet stop ghc from looking at the global package db.
See http://hackage.haskell.org/trac/ghc/ticket/5977
Fixes feature request #437.
M ./Cabal/Distribution/Simple/Configure.hs -13 +21
M ./Cabal/Distribution/Simple/GHC.hs -1 +6
M ./Cabal/Distribution/Simple/Setup.hs -9 +20
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...
Wed Mar 28 19:07:52 PDT 2012 Duncan Coutts
* Use the new --package-db flag stuff in cabal-install
M ./cabal-install/Main.hs -18 +4
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=2...