|
Distribution.Simple.Setup | Portability | portable | Maintainer | cabal-devel@haskell.org |
|
|
|
Description |
This is a big module, but not very complicated. The code is very regular
and repetitive. It defines the command line interface for all the Cabal
commands. For each command (like configure, build etc) it defines a type
that holds all the flags, the default set of flags and a CommandUI that
maps command line flags to and from the corresponding flags type.
All the flags types are instances of Monoid, see
http://www.haskell.org/pipermail/cabal-devel/2007-December/001509.html
for an explanation.
The types defined here get used in the front end and especially in
cabal-install which has to do quite a bit of manipulating sets of command
line flags.
This is actually relatively nice, it works quite well. The main change it
needs is to unify it with the code for managing sets of fields that can be
read and written from files. This would allow us to save configure flags in
config files.
|
|
Synopsis |
|
|
|
Documentation |
|
|
Flags that apply at the top level, not to any sub-command.
| Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
Flags to configure command
| Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
Flags to copy: (destdir, copy-prefix (backwards compat), verbosity)
| Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
Flags to install: (package db, verbosity)
| Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
|
|
Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
Flags to register and unregister: (user package, gen-script,
in-place, verbosity)
| Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
|
|
Flags to sdist: (snapshot, verbosity)
| Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
The location prefix for the copy command.
| Constructors | | Instances | |
|
|
|
Arguments to pass to a configure script, e.g. generated by
autoconf.
|
|
|
|
|
|
|
|
|
All flags are monoids, they come in two flavours:
1. list flags eg
--ghc-option=foo --ghc-option=bar
gives us all the values [foo, bar]
2. singular value flags, eg:
--enable-foo --disable-foo
gives us Just False
So this Flag type is for the latter singular kind of flag.
Its monoid instance gives us the behaviour where it starts out as
NoFlag and later flags override earlier ones.
| Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Produced by Haddock version 2.4.2 |