[Hackage] #511: cabal-install too eager about resolving dependencies

Hackage trac at galois.com
Fri Feb 27 04:58:59 EST 2009


#511: cabal-install too eager about resolving dependencies
---------------------------------+------------------------------------------
  Reporter:  guest               |        Owner:         
      Type:  defect              |       Status:  new    
  Priority:  low                 |    Milestone:         
 Component:  cabal-install tool  |      Version:  1.6.0.1
  Severity:  normal              |     Keywords:         
Difficulty:  unknown             |   Ghcversion:         
  Platform:                      |  
---------------------------------+------------------------------------------
 I tried running this command:

 {{{
 sudo cabal install test-framework test-framework-hunit test-framework-
 quickcheck test-framework-quickcheck2
 }}}

 However, Cabal barfed with:

 {{{
 Resolving dependencies...
 cabal: cannot configure test-framework-quickcheck-0.2.1. It requires
 QuickCheck >=1.1 && <2
 For the dependency on QuickCheck >=1.1 && <2 there are these packages:
 QuickCheck-1.1.0.0 and QuickCheck-1.2.0.0. However none of them are
 available.
 QuickCheck-1.1.0.0 was excluded because QuickCheck-2.1.0.1 was selected
 instead
 QuickCheck-1.1.0.0 was excluded because test-framework-quickcheck2-0.2.1
 requires QuickCheck >=2.1.0.0
 QuickCheck-1.2.0.0 was excluded because QuickCheck-2.1.0.1 was selected
 instead
 QuickCheck-1.2.0.0 was excluded because test-framework-quickcheck2-0.2.1
 requires QuickCheck >=2.1.0.0
 }}}

 This seems to be because the quickcheck and quickcheck2 providers for
 test-framework by design depend on disjoint versions of QuickCheck. This
 should not confuse cabal install, since installing the packages
 sequentially in any order works fine:

 {{{
 sudo cabal install test-framework test-framework-hunit test-framework-
 quickcheck
 sudo cabal install test-framework-quickcheck2
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/511>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list