[Haskell-cafe] How to determine minimal dependency of package

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Sat Jul 16 00:22:09 CEST 2011


On 16 July 2011 01:04, Daniel Patterson <lists.haskell at dbp.mm.st> wrote:
> Based on the package versioning policy [1], A.B is a major version, so if
> you know that it works with 1.2, then it is reasonably safe to specify the
> range >= 1.2 && <1.3, as no major api breaking changes should occur within
> the 1.2 range (ie, 1.2.1 to 1.2.2, etc)
> 1. http://www.haskell.org/haskellwiki/Package_versioning_policy#Version_numbers

Not quite: if you're using version x.y.z then it may have an
additional function, etc. that was added compared to just x.y ; as
such the bounds are >= x.y.z && < x.(y+1)

That said, very few packages seem to have versions where they add
something without removing or modifying something else, so in most
cases you are correct.

-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com



More information about the Haskell-Cafe mailing list