cabal-install for ghc 6.12 rc1

Hi, I've been trying to modify cabal-install so that it builds and works on ghc 6.12 rc1. Made some easy fixes, then came upon this compilation error: Building cabal-install-0.7... [14 of 35] Compiling Distribution.Client.IndexUtils ( Distribution/Client/IndexUtils.hs, dist/build/cabal/cabal-tmp/Distribution/Client/IndexUtils.o ) Distribution/Client/IndexUtils.hs:111:6: Couldn't match expected type `Distribution.InstalledPackageInfo.InstalledPackageInfo' against inferred type `AvailablePackage' In the expression: AvailablePackage {packageInfoId = pkgid, packageDescription = pkg, packageSource = RepoTarballPackage repo} In the first argument of `PackageIndex.fromList', namely `[AvailablePackage {packageInfoId = pkgid, packageDescription = pkg, packageSource = RepoTarballPackage repo} | (pkgid, pkg) <- pkgs]' In the second argument of `($)', namely `PackageIndex.fromList [AvailablePackage {packageInfoId = pkgid, packageDescription = pkg, packageSource = RepoTarballPackage repo} | (pkgid, pkg) <- pkgs]' Uh-oh. This looks like a big chunk of work (the package index type is no longer polymorphic in cabal 1.8.0). Has anyone else worked on this? Is there some secret branch of cabal-install somewhere that works on ghc 6.12? -- Robin

On Tue, 2009-10-20 at 10:49 +0100, Robin Green wrote:
Uh-oh. This looks like a big chunk of work (the package index type is no longer polymorphic in cabal 1.8.0).
Yes. Installed packages are no longer identified by a PackageId, they're now identified by a separate InstalledPackageId and there can be multiple installed packages with the same PackageId. The impact on cabal-install is non-trivial.
Has anyone else worked on this? Is there some secret branch of cabal-install somewhere that works on ghc 6.12?
I have some incomplete patches locally. I've been a bit pressed for time recently however. Duncan
participants (2)
-
Duncan Coutts
-
Robin Green