Accommodate network/network-uri split
Merge pull request #2053 from RyanGlScott/master

Accommodate network/network-uri split
.travis.yml: Bump GHC version.
Bump version.

So that the 'install_from_tarball' build bot step doesn't try to use the old
1.21 snapshot that comes with GHC HEAD.
Apply network-uri split to test package as well.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
A few more sandbox related ignore items.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Actually check for command success in these tests

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

Ezyang test fixes
Suppress orphan warning pre-GHC 7.8

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Add extra network dependency to make sure dep solver gets it right.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Make Distribution.Simple.PackageIndex polymorphic in package storage.

BC note: renamed type PackageIndex :: * to InstalledPackageIndex.

The intent is to have cabal-install use this package index in order to
track information about compilation in progress.  We introduce a new
PackageInstalled type-class to keep track of data types which have their
IDs and dependency graphs in InstalledPackageId.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
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>
Support module thinning and renaming Cabal-side.

NB: 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>
Fix up sandboxes to not use file database.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Revert "Replace a '>=' comparison with a '>'."

This reverts commit 440fe65e4f2e1f3859a0444c28c636ff905f82a4.
Preliminary support for compiling signature files, using --instantiate-with.

There's no chrome here, but some of the guts for Cabal supporting compiling
signatures.  The key UI is a new --instantiate-with flag for ./Setup (no support
cabal-install side!) which properly modifies the package key, calculates extra
hole dependencies for a package, and ensures an appropriately
translated -sig-of is passed to GHC.  The UI here is supremely user-unfriendly:
the intent is that users will use cabal-install to calculate these parameters
for them.

ToDo: Cabal's inconsistency check in ./Setup needs to be adjusted to be
less zealous.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Rename to instantiatedWith and store in InstalledPackageINfo

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Add uninterpreted required-signatures and exported-signatures fields.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Wire up so dep solver outputs different format, but trivial resolution

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Add uninterpreted indefinite field

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>