cabal install QuickCheck

Hi, I was recently puzzled by the fact that I got QuickCheck-1.2.0.1 via cabal although QuickCheck-2.1.1.1 is in the current haskell-platform-2010.2.0.0. Shouldn't hackage be adjusted? Cheers Christian

Christian Maeder schrieb:
Hi,
I was recently puzzled by the fact that I got QuickCheck-1.2.0.1 via cabal although QuickCheck-2.1.1.1 is in the current haskell-platform-2010.2.0.0.
Shouldn't hackage be adjusted?
Did you get QuickCheck-1 by installing only Platform packages? Other hackage packages can of course depend on QuickCheck-1.

Cabal has this really ugly hack called "preferred versions". This is
how you get QC 1 (vs 2) and Parsec 2 (vs 3) when you don't specify.
To get around this just add a constraint:
cabal install 'QuickCheck >= 2'
Cheers,
Thomas
On Fri, Jan 7, 2011 at 1:49 AM, Christian Maeder
Hi,
I was recently puzzled by the fact that I got QuickCheck-1.2.0.1 via cabal although QuickCheck-2.1.1.1 is in the current haskell-platform-2010.2.0.0.
Shouldn't hackage be adjusted?
Cheers Christian
_______________________________________________ Libraries mailing list Libraries@haskell.org http://www.haskell.org/mailman/listinfo/libraries

Am 08.01.2011 23:59, schrieb Thomas DuBuisson:
Cabal has this really ugly hack called "preferred versions". This is how you get QC 1 (vs 2) and Parsec 2 (vs 3) when you don't specify. To get around this just add a constraint:
cabal install 'QuickCheck >= 2'
Right, the "preferred version" for QuickCheck should be updated to version 2, because the haskell platform happened to switch from QC1 to QC2 some time ago. Whereas the preferred version for Parsec is correctly 2, because Parsec 2 is (still) part of the current haskell platform. (I oppose(d) to update to Parsec 3) Cheers Christian

On 10 January 2011 15:42, Christian Maeder
Am 08.01.2011 23:59, schrieb Thomas DuBuisson:
Cabal has this really ugly hack called "preferred versions". This is how you get QC 1 (vs 2) and Parsec 2 (vs 3) when you don't specify. To get around this just add a constraint:
cabal install 'QuickCheck >= 2'
Right, the "preferred version" for QuickCheck should be updated to version 2, because the haskell platform happened to switch from QC1 to QC2 some time ago.
Ah, good point. Fixed. (For some reason I thought I'd done it already, but apparently not) http://hackage.haskell.org/packages/archive/preferred-versions Duncan
participants (4)
-
Christian Maeder
-
Duncan Coutts
-
Henning Thielemann
-
Thomas DuBuisson