patch applied (cabal): "Convert ghc option construction to use an options record" and 7 others

Duncan Coutts duncan.coutts at
Thu Mar 29 04:10:00 CEST 2012

Tue Mar 27 15:52:05 PDT 2012  Duncan Coutts <duncan at>
  * 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:;a=darcs_commitdiff;h=20120327225205-5c91e-8630eadaf1e697e9186273e6af3d8495fe5bb368.gz

Tue Mar 27 16:32:03 PDT 2012  Duncan Coutts <duncan at>
  * 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:;a=darcs_commitdiff;h=20120327233203-5c91e-105b034c011c31bb6c8430271f6b4469774e3fd9.gz

Wed Mar 28 14:45:22 PDT 2012  Duncan Coutts <duncan at>
  * Check for the env var GHC_PACKAGE_PATH
  Based on the patch by Keegan McAllister <mcallister.keegan at>
  Fixes ticket #335

    M ./Cabal/Distribution/Simple/GHC.hs +15

View patch online:;a=darcs_commitdiff;h=20120328214522-5c91e-0f5c4182e6553cd2e518a3375afeababf9d3cb4e.gz

Wed Mar 28 15:05:56 PDT 2012  Duncan Coutts <duncan at>
  * Fix ticket #731

    M ./cabal-install/Distribution/Client/Configure.hs -9 +12

View patch online:;a=darcs_commitdiff;h=20120328220556-5c91e-7854de20600d33338b0ca9e11b197875250ae3ff.gz

Wed Mar 28 18:08:37 PDT 2012  Duncan Coutts <duncan at>
  * Add back deprecated ghcVerbosityOptions and ghcPackageDbOptions

    M ./Cabal/Distribution/Simple/GHC.hs +22

View patch online:;a=darcs_commitdiff;h=20120329010837-5c91e-bb2b1de8aa2eda993c83cba04245df90bb327aec.gz

Wed Mar 28 18:46:53 PDT 2012  Duncan Coutts <duncan at>
  * head cabal-install requires head Cabal

    M ./cabal-install/cabal-install.cabal -1 +1

View patch online:;a=darcs_commitdiff;h=20120329014653-5c91e-6fe2258fec400ba162d938d85ed0e528b6f5318c.gz

Wed Mar 28 19:07:20 PDT 2012  Duncan Coutts <duncan at>
  * 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.
  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:;a=darcs_commitdiff;h=20120329020720-5c91e-bc21b89d0fa7629049b36746a7a7becfd39dcb0a.gz

Wed Mar 28 19:07:52 PDT 2012  Duncan Coutts <duncan at>
  * Use the new --package-db flag stuff in cabal-install

    M ./cabal-install/Main.hs -18 +4

View patch online:;a=darcs_commitdiff;h=20120329020752-5c91e-84dff75cc0f68b7f630f6e19f97150d269c6a9e1.gz

More information about the cabal-devel mailing list