Changing dependencies

I have a sandbox application. Bonded dependencies are unlimited so cabal install --only-dependencies

gives me the latest packages. After a certain amount of time, I want my dependencies to depend on the latest versions, but before that, I want to see which dependencies actually changed to the newer version. Of course, I can check them all manually. But I would rather see a good list of things to be updated.

I guess this cabal install --upgrade-dependencies --only-dependencies --dry-run

is the way to do it. I would expect it to provide me with a list of all packages that are on a newer version than the one in my sandbox. But it never works! I mean, it just says that all dependencies are up to date when they are clearly not there. Am I doing something wrong or am I missing something or am I missing something?

If I wipe my sandbox completely, restart cabal install --only-dependencies

and discard the freeze files, after which I can see what packages have typed. But this is stupid. So how can I get cabal install --upgrade-dependencies --only-dependencies --dry-run

to work correctly and print all packages to be updated without using the sandbox? Declaring if these options don't work in cabal, why aren't they just removed to avoid confusion?

Thank.

+3


source to share


1 answer


You can use cabal list --installed

and compare "Available by default version" with "Installed versions".



Unfortunately the cabal switch does --simple-output

n't include this information, so you'll need a little script to automate it.

+1


source







All Articles