[Haskell-cafe] trying to cabal install lambdabot, failure on 'random' package

Daniel Fischer daniel.is.fischer at googlemail.com
Sun May 8 15:14:06 CEST 2011

On Sunday 08 May 2011 09:24:50, Sean Perry wrote:
> package random- requires time-
> package random- requires time-
> Preprocessing library show-
> Building show-
> <command line>: cannot satisfy -package-id
> random- 
> random- is shadowed by package
> random-

You have two versions(?) of random-, one in the global package-db, 
one in the user-db. The one in the user-db shadows the global, making it 
unusable. That's BAD. Having boot packages (random, process, directory, 
time, ...) in both, global and user db, tends to break stuff, check what's 
broken already with

$ ghc-pkg check

If too much is broken, delete your user-db and reinstall fresh, otherwise 
try unregistering the ones in the user-db shadowing stuff in the global db, 
in particular random-,

$ ghc-pkg unregister --user random-

It will probably notify you that unregistering that will break a couple of 
other packages, the best would probably be to unregister those too and 
rebuild them against the global random.

More information about the Haskell-Cafe mailing list