cabal install version selection

Hi everybody, 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? When I pushed the newest version of the RNAFold package, the log showed iteratee-0.1.0 to be used, which failed of course: http://hackage.haskell.org/packages/archive/RNAFold/1.99.1.0/logs/failure/gh... It got really weird, however when I saw that the dependency BiobaseVienna-0.2.2.3, which is the one actually using iteratee, was built correctly. Of course, seeing the error of my way, I have started adding more version constraints to every package I maintain. Gruss, Christian

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.

Thanks,
that was a rather curious problem then. With more version annotations,
hackage compiled everything.
Thanks for for testing!
Gruss,
Christian
* Albert Y. C. Lai
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.
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
participants (3)
-
Albert Y. C. Lai
-
Christian Hoener zu Siederdissen
-
Christian Höner zu Siederdissen