How to determine minimal dependency of package

I'm writing my first haskell package, how do i determine the minimal dependency of it, for example, it use Data.Data, how do i know which version of base package first introduce Data.Data module, i can't find the answer with google. -- http://www.yi-programmer.com/blog/

On Fri, Jul 15, 2011 at 10:48 AM, yi huang
I'm writing my first haskell package, how do i determine the minimal dependency of it, for example, it use Data.Data, how do i know which version of base package first introduce Data.Data module, i can't find the answer with google.
You should specify the minimum version you have tested with. Anthony

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 On Jul 15, 2011, at 10:56 AM, Anthony Cowley wrote:
On Fri, Jul 15, 2011 at 10:48 AM, yi huang
wrote: I'm writing my first haskell package, how do i determine the minimal dependency of it, for example, it use Data.Data, how do i know which version of base package first introduce Data.Data module, i can't find the answer with google.
You should specify the minimum version you have tested with.
Anthony
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On 16 July 2011 01:04, Daniel Patterson
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@gmail.com IvanMiljenovic.wordpress.com
participants (4)
-
Anthony Cowley
-
Daniel Patterson
-
Ivan Lazar Miljenovic
-
yi huang