[Haskell-cafe] Automatically test different versions of single dependency

Alp Mestanogullari alpmestan at gmail.com
Thu Jul 4 14:36:11 CEST 2013


You can just write a bash script that will do:

    cabal install --constraint='bar == v'

for all the values of 'v' (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 http://hackage.haskell.org/packages/archive/containers/ (for the
'containers' package in this case) or by using cabal-install cleverly
maybe?

I just saw 'cabal info containers' gives a list of available versions, up
to a point... after which it says "(and 4 others)". So maybe go see how
'cabal info' does this? But all in all, this should give you enough to work
out a nice solution.



On Thu, Jul 4, 2013 at 12:56 PM, Daniel Díaz Casanueva <
dhelta.diaz at gmail.com> wrote:

> Hello everyone.
>
> I would like to check what dependencies is one of my packages compatible
> with. For example, say I have a package called "foo" that depends on
> package "bar". Most likely, "foo" does not build with each version of
> "bar". What I want to do is try to build "foo" with each single version of
> "bar" (not manually).
>
> What is the best approach to this?
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>


-- 
Alp Mestanogullari
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130704/375f5af3/attachment.htm>


More information about the Haskell-Cafe mailing list