For a description of prune-juice, see previous post on Pruning unused Haskell dependencies.

Since releasing prune-juice, I have received a number of requests asking to apply the unused dependencies directly to the cabal files. It ended up being a lot harder than I expected to implement, and I’m proud to say that it’s finally supported!

For those of you who just want the goods, you can run it with prune-juice --apply, and with prune-juice --apply --no-verify to skip confirmation.

If you have any bug reports or feature requests, please create an issue here.

If you’d like to read about implementing the new features, there is an in-depth post here.