[Haskell-cafe] How to determine correct dependency versions for a library?

Roman Cheplyaka roma at ro-che.info
Wed Nov 14 10:35:30 CET 2012

* Erik Hesselink <hesselink at gmail.com> [2012-11-12 20:58:17+0100]
> And I believe the last base changes included a change to 'catch' which
> would have broken a lot of packages. The Num changes also caused a lot of
> code changes, and there were probably more I don't remember.

Even if so, upper bounds don't prevent these errors. Cabal can't install
an older base for you.

(I'm aware that GHC once shipped two versions of base, and dependency
bounds were actually useful then. But that's not the case nowadays, as
we see.)

For example, here's what I get when I try to install virthualenv with
GHC 7.6.1:

  % cabal install virthualenv
  Resolving dependencies...
  cabal: Could not resolve dependencies:
  trying: virthualenv-0.2.1
  rejecting: base-, (global constraint requires installed
  rejecting: base- (conflict: virthualenv =>
  base>= && <4.6)
  rejecting: base-,,,,,,,,,,, (global constraint requires
  installed instance)


More information about the Haskell-Cafe mailing list