[Haskell-cafe] Re: Fix plugins package.

Yuras Shumovich shumovichy at gmail.com
Sat Jul 10 02:28:58 EDT 2010


> Another error :
>
> ------------------------------> error start <------------------------------
> Preprocessing library plugins-1.4.1...
> Building plugins-1.4.1...
> [ 7 of 15] Compiling System.Plugins.Env ( src/System/Plugins/Env.hs, dist/build/System/Plugins/Env.o )
>
> src/System/Plugins/Env.hs:315:45:
>    Couldn't match expected type `PackageDBStack'
>           against inferred type `PackageDB'
>    In the second argument of `getInstalledPackages', namely
>        `(SpecificPackageDB f)'
>    In a stmt of a 'do' expression:
>        pkgIndex <- getInstalledPackages silent (SpecificPackageDB f) pc
>    In the expression:
>        do { pc <- configureAllKnownPrograms
>                     silent defaultProgramConfiguration;
>             pkgIndex <- getInstalledPackages silent (SpecificPackageDB f) pc;
>               return $ allPackages pkgIndex }
> cabal: Error: some packages failed to install:
> plugins-1.4.1 failed during the building phase. The exception was:
> ExitFailure 1
> ------------------------------> error end   <------------------------------

It looks like it is not the last error :)

Try this:
pkgIndex <- getInstalledPackages silent [SpecificPackageDB f] pc
Not sure it will work as expected after that, but you can just try :)


More information about the Haskell-Cafe mailing list