[Haskell-cafe] some problem with Cabal

Daniel Fischer daniel.is.fischer at googlemail.com
Wed Mar 9 03:49:35 CET 2011

On Wednesday 09 March 2011 02:51:35, qiqi wrote:
> I used cabal install xmobar --flags="all_extensions" .


In order, the following would be installed:
containers- (new version)
filepath- (new version)
directory- (reinstall) changes: filepath- ->
hinotify-0.3.1 (new package)
mtl- (new version)
network- (new version)
process- (reinstall) changes: filepath- ->
stm- (new package)
syb-0.3 (new package)
X11- (new package)
time-1.1.4 (new version)
random- (reinstall) changes: time- -> 1.1.4
haskell98- (reinstall)
utf8-string-0.3.6 (new package)
X11-xft-0.3 (new package)
libmpd-0.5.0 (new package)
xmobar-0.12 (new package)

I haven't looked further, but libmpd is at least partially responsible, it 
depends on filepath < 1.2, time < 1.2 and a couple other old packages.

> Is it true that every package installed from hackage should not install
> any package, which already exists in the global with the same version
> number , in the local db?

Generally, it shouldn't (and doesn't), but here some packages have to be 
reinstalled because they have to be built against different dependencies.

I'd prefer cabal install to refuse here (overridable with a --force flag) 
because reinstalling boot libs (containers, filepath, directory, process, 
time) tends to be a bad idea.

However, xmobar is an executable and no library, so if you unregister the 
packages (from the user db!) after installing before they can cause 
trouble, you should be fine (but no guarantees).

More information about the Haskell-Cafe mailing list