Makes it possible to write 'jobs: $DEFAULT' in the config file, which is equivalent to running 'cabal install -j' from the command line (the number of working threads is set to the number of processors).
Makes it possible to write unit tests for code under Distribution.Client.*.
Now the warning message includes mention of the input data that is being ignored because hpc can't deal with it. This involves a change of behaviour: when the HPC version cannot be determined, this is now a fatal error, rather than just assuming an old version.
This lets us use it for the package check in configure.
For compatability, we need to make sure people using C files for the main-is field, also have to specify the right cabal version.
This allows specifying the main-is field as a C file. This is closely based on patches by Edward Z. Yang, who in turn credits and earlier set of patches by Irene Knapp. The slight difference in this version of the patch is that it is adjusted to work with the new approach where we have separate hs compile; c compile; and link phases.
Implemented by creating an install plan for ["add-source-dep-1", ..., "add-source-dep-N", "."], pruning "." from this plan and then doing all remaining installs in the plan before building the current package. This way, all reverse dependencies of add-source packages needed to install the current package are also reinstalled.
Splits 'D.C.Install.install' into three parts: * makeInstallContext - load common data * makeInstallPlan - produce the install plan * processInstallPlan - actually perform the installations This allows to manipulate the install plan produced with 'makeInstallPlan' before performing the installations with 'processInstallPlan'. The high-level 'install' action is still present; most clients should use it instead.
And move compiling of C files after the compile of Haskell modules, just like we do for libraries. Reversing the order is important because C files can depend on headers generated for Haskell FFI exports. This is based on a patch by Edward Z. Yang <email@example.com>
Was accidentally using the targets rather than the dependencies and the targets.
We must not pass '--disable-benchmarks' to setup scripts built with Cabal < 1.14; the same is also true for '--disable-tests' and Cabal < 1.10. Fixes #932 and #1004. Without this patch: $ cabal install -w /path/to/ghc-7.2.1/bin/ghc syb [...] unrecognized option `--disable-benchmarks' Failed to install syb-0.3.7 With this patch: $ cabal install -w /path/to/ghc-7.2.1/bin/ghc syb [...] Registering syb-0.3.7... Installed syb-0.3.7