id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	difficulty	ghcversion	platform
805	Configure fails when AvailablePackage source is RepoTarballPackage	dmp		"I'm having cabal configure will fail with

{{{
cabal: internal error: configure install plan should have exactly one local
ready package.
}}}

Checking the source code shows that this error occurs in {{{Configure.hs}}} when failing a pattern match in Configure.hs:88. The value that is coming back from {{{InstallPlan.ready}}} is in fact a list of one element, but it is failing on the {{{LocalUnpackedPackage}}} match. The value returned in my case has the value:

{{{
packageSource = RepoTarballPackage (Repo {repoKind = Left (RemoteRepo
{remoteRepoName = ""hackage.haskell.org"", remoteRepoURI =
http://hackage.haskell.org/packages/archive}), repoLocalDir =
""/Users/dave/.cabal/packages/hackage.haskell.org""})
}}}

This is happening for a cabal package which has a dependency on the binary package, but the binary package is not installed. It doesn't happen with all cabal packages, but just perhaps when binary is the only missing dependency. 

If I first run {{{cabal install binary}}} then the {{{cabal configure}}} will go through just fine. Unregistering the package  will again cause {{{cabal configure}}} to fail.

{{{
$ cabal --version
cabal-install version 0.9.6
using version 1.10.1.0 of the Cabal library 
$ ~/ghc-7/bin/ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.0.1.20110217
}}}
"	defect	closed	normal	cabal-install-0.10	cabal-install tool	1.10.1.0	normal	fixed			unknown		
