You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we have a common stanza in our cabal file that includes a build-depends component with one or more dependencies, and each of the build targets that imports that common stanza does not require one or more of the dependencies listed in the build-depends of the common stanza, then weeder does not report these as redundant dependencies.
Consider the following .cabal file:
name: my-package
common deps
build-depends: libA, libB
library
import deps
[... more stuff here ...]
executable exe
import deps
[... more stuff here ...]
If neither the executable exe nor the package library my-package require libA or libB, it would be very helpful for weeder to report libA and libB are redundant dependencies.
This issue is perhaps speculative, as I don't know if it is feasible for weeder to do this.
The text was updated successfully, but these errors were encountered:
recursion-ninja
changed the title
Weeder does not detect redundat build dependecies in common stanzas
Weeder does not detect redundant build dependecies in common stanzas
Apr 5, 2019
I would actually say that anything imported from a common stanza but not used should be considered a weed. Every unused package increases compile time etc, so only shared things should actually be put in common sections.
If we have a
common
stanza in our cabal file that includes abuild-depends
component with one or more dependencies, and each of the build targets that imports that common stanza does not require one or more of the dependencies listed in thebuild-depends
of the common stanza, thenweeder
does not report these as redundant dependencies.Consider the following
.cabal
file:If neither the executable
exe
nor the package librarymy-package
requirelibA
orlibB
, it would be very helpful forweeder
to reportlibA
andlibB
are redundant dependencies.This issue is perhaps speculative, as I don't know if it is feasible for
weeder
to do this.The text was updated successfully, but these errors were encountered: