Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How wide or narrow should cabal dependency version constraints be?

Tags:

haskell

I recently uploaded a Haskell project to Hackage, but I was uncertain how narrow or wide I should make my dependency version constraints in the cabal file. Are there any guidelines for this?

like image 525
dan Avatar asked Dec 07 '25 22:12

dan


1 Answers

There is the Haskell Package Versioning Policy, which gives clear guidance.

But I should add that these are not universally accepted, and cause regular heated debates, especially the upper version bound on dependencies.

like image 64
Joachim Breitner Avatar answered Dec 09 '25 15:12

Joachim Breitner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!