[Haskell-cafe] Re: Fix plugins package.
Andy Stewart
lazycat.manatee at gmail.com
Sat Jul 10 02:20:26 EDT 2010
Yuras Shumovich <shumovichy at gmail.com> writes:
>>> src/System/Plugins/Process.hs:59:4:
>>> Warning: A do-notation statement discarded a result of type GHC.Conc.ThreadId.
>>> Suppress this warning by saying "_ <- forkIO
>>> ((>>)
>>> E.evaluate (length errput)
>>> return GHC.Unit.())",
>>> or by using the flag -fno-warn-unused-do-bind
>>> [ 3 of 15] Compiling System.Plugins.Parser ( src/System/Plugins/Parser.hs,
>>> dist/build/System/Plugins/Parser.o )
>>>
>>> src/System/Plugins/Parser.hs:31:0:
>>> Warning: The import of `Data.Either' is redundant
>>> except perhaps to import instances from `Data.Either'
>>> To import instances alone, use: import Data.Either()
>>> [ 4 of 15] Compiling System.Plugins.PackageAPI ( src/System/Plugins/PackageAPI.hs,
>>> dist/build/System/Plugins/PackageAPI.o )
>>>
>>> src/System/Plugins/PackageAPI.hs:61:24: Not in scope: `package'
>>>
>>> src/System/Plugins/PackageAPI.hs:62:25: Not in scope: `package'
>>> ...
>
> You can just replace 'package' with 'sourcePackageId'
After replace 'package' with 'sourcePackageId'
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 <------------------------------
Thanks,
-- Andy
More information about the Haskell-Cafe
mailing list