-
Notifications
You must be signed in to change notification settings - Fork 724
Description
Here's some ideas for how to improve cabal outdated with the nix-local-build UI in mind:
-
cabal outdatedshould support target-selectors likenew-buildet al:cabal outdated allwould then iterate over all local packages configured incabal.projectand check all components for over-constricted bounds.And it also makes sense to limit
outdatedto some components, i.e. if only care about a few components (and e.g. not the testsuite):cabal outdated lib:foo exe:doowould only check the two named components in whichever local package they're located.Conversely, we have special names to e.g. refer to all testsuites in the target-selector; so you could also say
cabal outdated teststo iterate over all test-suite components in yourcabal.project. -
cabal outdatedalready supportscabal.project.freeze; however, it would be convenient to have a variant which consults the last computed install-plan (and possibly compute one if it's needs (re)computation); IOW, a variant that combinescabal new-freezewithcabal outdated --new-freeze-filebut without generating/overwriting an existingcabal.project.freezefile.