<font face="verdana,sans-serif">It&#39;s not restrictive. Anything that I put on Hackage is open source. If someone finds that it works fine on a previous (or later) version, I accept their patch with a constraint change, and re-release immediately. I just don&#39;t like to claim that my package works with major versions of packages that I haven&#39;t tested.</font><div class="gmail_extra">

<br><br><div class="gmail_quote">On Fri, Nov 9, 2012 at 12:36 PM, Janek S. <span dir="ltr">&lt;<a href="mailto:fremenzone@poczta.onet.pl" target="_blank">fremenzone@poczta.onet.pl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">&gt; I usually just take the easy way out and switch to ==0.7.<br>
</div>I see. I guess I don&#39;t yet have enough experience in Haskell to anticipate how restrictive is such<br>
a choice.<br>
<span class="HOEnZb"><font color="#888888"><br>
Janek<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt; On Fri, Nov 9, 2012 at 11:31 AM, Janek S. &lt;<a href="mailto:fremenzone@poczta.onet.pl">fremenzone@poczta.onet.pl</a>&gt; wrote:<br>
&gt; &gt; Thanks Clark! You&#39;re method seems good at first but I think I see a<br>
&gt; &gt; problem. So let&#39;s say you<br>
&gt; &gt; started with aeson 0.6. As new versions of aeson are released you<br>
&gt; &gt; introduce version ranges, but<br>
&gt; &gt; do you really have a method to determine that your package does indeed<br>
&gt; &gt; work with earlier<br>
&gt; &gt; versions? If you&#39;re upgrading aeson and don&#39;t have the older versions<br>
&gt; &gt; anymore you can only hope<br>
&gt; &gt; that the code changes you introduce don&#39;t break the dependency on earlier<br>
&gt; &gt; versions. Unless I am<br>
&gt; &gt; missing something?<br>
&gt; &gt;<br>
&gt; &gt; Janek<br>
&gt; &gt;<br>
&gt; &gt; Dnia piątek, 9 listopada 2012, Clark Gaebel napisał:<br>
&gt; &gt; &gt; What I usually do is start out with dependencies listed like:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; aeson ==0.6.*<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; and then, as your dependencies evolve, you either bump the version<br>
&gt; &gt;<br>
&gt; &gt; number:<br>
&gt; &gt; &gt; aeson ==0.7.*<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; or, if you&#39;re willing to support multiple version, switch to a range:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; aeson &gt;=0.6 &amp;&amp; &lt;= 0.7<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; If someone uses a previous version of a library, and wants your library<br>
&gt; &gt;<br>
&gt; &gt; to<br>
&gt; &gt;<br>
&gt; &gt; &gt; support it too (and, preferably, it works out of the box), they&#39;ll send<br>
&gt; &gt; &gt; a pull request.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; That&#39;s what works for me. Maybe you could use it as a starting point to<br>
&gt; &gt; &gt; find what works for you!<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;   - Clark<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Fri, Nov 9, 2012 at 11:15 AM, Janek S. &lt;<a href="mailto:fremenzone@poczta.onet.pl">fremenzone@poczta.onet.pl</a>&gt;<br>
&gt; &gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt; &gt; &gt; Recently I started developing a Haskell library and I have a question<br>
&gt; &gt; &gt; &gt; about package dependencies.<br>
&gt; &gt; &gt; &gt; Right now when I need my project to depend on some other package I<br>
&gt; &gt; &gt; &gt; only specify the package name<br>
&gt; &gt; &gt; &gt; in cabal file and don&#39;t bother with providing the package version.<br>
&gt; &gt; &gt; &gt; This works because I am the<br>
&gt; &gt; &gt; &gt; only user of my library but I am aware that if the library were to be<br>
&gt; &gt; &gt; &gt; released on Hackage I would<br>
&gt; &gt; &gt; &gt; have to supply version numbers in the dependencies. The question is<br>
&gt; &gt; &gt; &gt; how to determine proper<br>
&gt; &gt; &gt; &gt; version numbers?<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; I can be conservative and assume that version of libraries in my<br>
&gt; &gt; &gt; &gt; system are the minimum required<br>
&gt; &gt; &gt; &gt; ones. This is of course not a good solution, because my library might<br>
&gt; &gt; &gt; &gt; work with earlier versions<br>
&gt; &gt; &gt; &gt; but I don&#39;t know a way to check that. What is the best way to<br>
&gt; &gt;<br>
&gt; &gt; determine a<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; minimal version of a<br>
&gt; &gt; &gt; &gt; package required by my library?<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; I also don&#39;t see any sane way of determining maximum allowed versions<br>
&gt; &gt;<br>
&gt; &gt; for<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; the dependencies, but<br>
&gt; &gt; &gt; &gt; looking at other packages I see that this is mostly ignored and<br>
&gt; &gt; &gt; &gt; package maintainers only supply<br>
&gt; &gt; &gt; &gt; lower versions. Is this correct approach?<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Janek<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; Haskell-Cafe mailing list<br>
&gt; &gt; &gt; &gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
&gt; &gt; &gt; &gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Haskell-Cafe mailing list<br>
&gt; &gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
&gt; &gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br>
<br>
</div></div></blockquote></div><br></div>