cabal install version selection

Albert Y. C. Lai trebla at vex.net
Sat Mar 31 03:56:43 CEST 2012


On 12-03-30 06:37 PM, Christian Höner zu Siederdissen wrote:
> I fail to remember or re-google the package version selection for cabal,
> if no version constraints are given.
>
> If I depend on "iteratee", and there are no constraints, does it take
> the lowest version?

It takes the highest version.

To verify, I fetched RNAFold.cabal of 1.99.1.0 and tried:

cabal install --dry-run

Its answer:

Resolving dependencies...
In order, the following would be installed (use -v for more details):
ListLike-3.1.4
MonadCatchIO-transformers-0.2.2.3
OneTuple-0.2.1
PrimitiveArray-0.2.1.1
ADPfusion-0.0.1.0
bytestring-lexing-0.4.0
cmdargs-0.9.5
csv-0.1.2
file-embed-0.0.4.1
iteratee-0.8.8.1
...

It chooses the newest iteratee alright.

I don't know what is going on with hackage's build bot. And I can't 
control it anyway.




More information about the Glasgow-haskell-users mailing list