[Haskell-cafe] buildDepends syntax and checks
shakthimaan at gmail.com
Wed Jan 4 11:29:29 CET 2012
#1 I would like to know if there is any context grammar or syntax for
the package dependencies that are allowed in buildDepends in each
.cabal file? AnyVersion and WildcardVersion are consistent. But, I see
quite a bit of variations in what is included in UnionVersionRange and
* Two WildcardVersions in a UnionVersionRange (fixed-point 0.5.0.1) 
* UnionVersionRange and WildcardVersion in a IntersectVersionRange
(hlint 1.6.12) 
#2 Is there a way to cross-check if the defined dependencies are in
fact correct, or is it left to the package owner to write them?
#3 Some dependencies have an 'or' for the same package (bytestring
0.9) , like "base (<3) or array, base (≥3)", and the cabal file
build-depends: base >= 3, array
build-depends: base < 3
I use the a script  to convert the .cabal files to .json, then the
.json lists both the build-depends!
Appreciate any inputs in this regard!
 fixed-point 0.5.0.1 (see base).
 hlint 1.6.12 (see uniplate).
 bytestring 0.9. http://hackage.haskell.org/package/bytestring-0.9
 Cabal2json.hs. http://shakthimaan.fedorapeople.org/SOURCES/Cabal2json.hs
More information about the Haskell-Cafe