Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

haskell

cabal

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?

like image 951
fho Avatar asked Apr 08 '15 09:04

fho


2 Answers

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.

like image 148
GS - Apologise to Monica Avatar answered Oct 23 '22 17:10

GS - Apologise to Monica


You might like the tool cabal-bounds.

like image 3
dan-t Avatar answered Oct 23 '22 17:10

dan-t