[commit: Cabal] master: Rearrange config settings and global command line settings (425795f)
Ian Lynagh
igloo at earth.li
Fri Jun 24 01:58:29 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/425795f42b0e6a597e70da7c51cc976bf310790a
>---------------------------------------------------------------
commit 425795f42b0e6a597e70da7c51cc976bf310790a
Author: Duncan Coutts <duncan at haskell.org>
Date: Thu Aug 21 21:05:55 2008 +0000
Rearrange config settings and global command line settings
The intention here is to have the config file content and parser
be derivied from the command line types and flags. Now instead
of having a saved config type that contains additional
information to that kept in command line parameters we now put
all the information in the command line settings type and make
the saved config just the aggregation of the settings for
various key commands like configure, install, upload. There's
also an extended GlobalFlags type with the things like repos,
cache dir etc. When we generate the initial config file we put
in commented out versions of all (non-deprecated) valid fields,
along with their default values. The aim is to make the config
file self-documenting.
cabal-install/Distribution/Client/Config.hs | 513 ++++++++++++-----------
cabal-install/Distribution/Client/ParseUtils.hs | 28 --
cabal-install/Distribution/Client/Setup.hs | 209 ++++++++--
cabal-install/Main.hs | 214 +++++-----
cabal-install/cabal-install.cabal | 1 -
5 files changed, 564 insertions(+), 401 deletions(-)
Diff suppressed because of size. To see it, use:
git show 425795f42b0e6a597e70da7c51cc976bf310790a
More information about the Cvs-libraries
mailing list