*** setup configure Reading installed packages... /usr/local/bin/ghc-pkg dump --global /usr/local/bin/ghc-pkg dump --user Dependency Cabal >=1.4: using Cabal-1.7.4 Creating setup (and its parents) /usr/local/bin/ghc -package Cabal-1.7.4 --make Setup.hs -o setup/setup -odir setup -hidir setup [1 of 1] Compiling Main ( Setup.hs, setup/Main.o ) Setup.hs:40:40: Couldn't match expected type `PackageIndex pkg' against inferred type `InstalledPackageIndex' In the first argument of `searchByName', namely `(installedPkgs lbi)' In the expression: searchByName (installedPkgs lbi) "base" In the expression: case searchByName (installedPkgs lbi) "base" of { None -> error "no base package" Unambiguous (x : _) -> x _ -> error "base ambiguous" } *** Trying again with preferred-versions *** setup configure Reading installed packages... /usr/local/bin/ghc-pkg dump --global /usr/local/bin/ghc-pkg dump --user Dependency Cabal >=1.4: using Cabal-1.7.4 Creating setup (and its parents) /usr/local/bin/ghc -package Cabal-1.7.4 --make Setup.hs -o setup/setup -odir setup -hidir setup [1 of 1] Compiling Main ( Setup.hs, setup/Main.o ) Setup.hs:40:40: Couldn't match expected type `PackageIndex pkg' against inferred type `InstalledPackageIndex' In the first argument of `searchByName', namely `(installedPkgs lbi)' In the expression: searchByName (installedPkgs lbi) "base" In the expression: case searchByName (installedPkgs lbi) "base" of { None -> error "no base package" Unambiguous (x : _) -> x _ -> error "base ambiguous" }