Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check for haskell package versions in ./configure?

how can I tell configure to check for version >= x.y of a given Haskell package?

Thanks,

like image 739
Andrea Spadaccini Avatar asked Oct 04 '11 09:10

Andrea Spadaccini


1 Answers

Use cabalvchk: http://hackage.haskell.org/package/cabalvchk-0.2

For example, to verify that the version of parsec is >= 0.4, you could issue:

$ cabalvchk parsec '>= 0.4'

The return code will be zero if the version constraint is satisfied and non-zero otherwise. The version constraint can be anything cabal understands. An optional third parameter can be non-blank to request verbose output.

like image 177
KQ. Avatar answered Sep 23 '22 14:09

KQ.