<div dir="ltr"><div style>You can just write a bash script that will do: </div><div style><br></div><div style>    cabal install --constraint=&#39;bar == v&#39;</div><div style><br></div><div style>for all the values of &#39;v&#39; (0.1, 0.2, 1.2.5.1, ...) you are interested in. You can be aware of all the existing versions just using the directory listing in <a href="http://hackage.haskell.org/packages/archive/containers/">http://hackage.haskell.org/packages/archive/containers/</a> (for the &#39;containers&#39; package in this case) or by using cabal-install cleverly maybe? </div>

<div style><br></div><div style>I just saw &#39;cabal info containers&#39; gives a list of available versions, up to a point... after which it says &quot;(and 4 others)&quot;. So maybe go see how &#39;cabal info&#39; does this? But all in all, this should give you enough to work out a nice solution.</div>

<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 12:56 PM, Daniel Díaz Casanueva <span dir="ltr">&lt;<a href="mailto:dhelta.diaz@gmail.com" target="_blank">dhelta.diaz@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello everyone.<div><br></div><div>I would like to check what dependencies is one of my packages compatible with. For example, say I have a package called &quot;foo&quot; that depends on package &quot;bar&quot;. Most likely, &quot;foo&quot; does not build with each version of &quot;bar&quot;. What I want to do is try to build &quot;foo&quot; with each single version of &quot;bar&quot; (not manually).</div>


<div><br></div><div>What is the best approach to this?</div></div>
<br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Alp Mestanogullari
</div>