What bonded bags are not used

If I check the warnings with the GHC, it will warn me which imports are not used ....

Is there a similar command to tell me which build-depends not used in my <project>.cabal ?

+8
haskell cabal
source share
1 answer

packunused is a simple CLI tool that lets you know which of the packages listed as build-depends in the Cabal package description file are redundant.

You must create your project with -ddump-minimal-imports , then run packunused :

 cabal build --ghc-option=-ddump-minimal-imports packunused 

It will print a list of package dependencies that seem not to be used.

+6
source share

All Articles