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

_______________________________________________
cabal-devel mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cabal-devel

Reply via email to