fho
fho

Reputation: 6798

Is there a recommended way to update version bounds on cabal packages?

With the release of GHC 7.10 and the accompanying version bump on the base package I found myself in the situation that I needed to fix my library dependencies.

For the moment I have run cabal install --allow-newer which found a set of working versions and installed fine.

Now I am in the process of manually searching through the installed libraries and updating the cabal files version bounds by hand.

Is there an easier/automatic way to do this?

Upvotes: 8

Views: 717

Answers (2)

dan-t
dan-t

Reputation: 31

You might like the tool cabal-bounds.

Upvotes: 3

Ganesh Sittampalam
Ganesh Sittampalam

Reputation: 29100

I regularly use packdeps to check on my dependencies and bump any that are too restrictive. As well as the website, there's a hackage package so you can run it locally.

Once I bump a dependency, e.g. by bumping foo < 1.5 to foo < 1.6, I build and test locally using the --constraint 'foo>=1.5' argument to cabal, to check that the new version does indeed work.

Upvotes: 9

Related Questions