Switch InstallPlan over to using IPID-indexed PackageIndex.

While this doesn't let us get rid of Distribution.Client.PackageIndex,
it does make InstallPlan more flexible, so we can have the same
package name-package version in the install plan multiple times.
We do this by synthesizing fake installed package IDs to act
as placeholders prior to compilation.

There is some shindig with 'FakeMap' in PackageIndex, check out
the Note in that file for more details.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Bash completion for "cabal sandbox" subcommands

Command "cabal sandbox --list-options" doesn't list subcommands of
"cabal sandbox", but "cabal help sandbox" does. It turns out that it is
easy to parse its output using sed and as such can be added to list of
words for completion.
Support module thinning and renaming Cabal-side.

Unlike GHC, Cabal will still try to find a globally consistent choice for
all package names, i.e. this does *not* implement private dependencies.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Merge pull request #2038 from ezyang/ezyang-renaming

Support module thinning and renaming Cabal-side.

Travis failure is due to https://github.com/haskell/cabal/issues/2114
bootstrap: fix network vsn regex typo

NETWORKURI_VER_REGEXP should be NETWORK_URI_VER_REGEXP
Merge pull request #2116 from tuncer/bootstrap-regex-typo

bootstrap: fix network vsn regex typo
Stop repeated rebuilds on Travis

Changing the build config format causes cabal-install to repeatedly
rebuild the Cabal library during the configure->build->test cycle.
Merge pull request #2117 from ttuegel/issue-2114-travis-rebuilds

Stop repeated rebuilds on Travis
Generate object files for older versions of GHC

This works around GHC bug #8942, for the versions of GHC which are
affected by this bug.
Merge pull request #2054 from ezyang/ezyang-reuse-index-dev

Switch InstallPlan over to using IPID-indexed PackageIndex
Merge pull request #2119 from gelisam/generate-object-files

Generate object files for older versions of GHC
Merge pull request #2104 from trskop/master

Bash completion for "cabal sandbox" subcommands
Fix three bugs with fake-map implementation for PackageIndex.

1. When we union PackageIndexes together, prefer the later one.
   This idiom is used when we update the processing-state of
   packages in an InstallPlan.

2. dependencyInconsistencies' was missing a number of indirections
   through the fakeMap, so in some cases we incorrectly concluded
   packages were not equal when they were.

3. We need to initialize the fakeMap with any pre-installed packages,
   otherwise the invariant check for configured-packages will fail.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Revert "Fix three bugs with fake-map implementation for PackageIndex."

This reverts commit f59bab102de3663c957b735a8d963d19f0fbde2e.

Revert "Switch InstallPlan over to using IPID-indexed PackageIndex."

This reverts commit 6465d174cbec5cef676b57a409d8f8f310a2b04e.
System.Win32.DLL import seems redunant
Merge pull request #2126 from Heather/master

System.Win32.DLL import seems redunant