haskell / haskell/cabal

Detect unused packages with new-build

Open
#5,331 16 comments 12 reactions 0 assignees View on GitHub
cabal-install: v2-build system status: consider closing type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

I would like `cabal` to support detection of redundant packages with `cabal new-build`, like `weeder` or `packunused`. This would entail:

- [ ] Detecting redundant packages in the `.cabal` file
- [ ] Making a command-line flag to toggle detection of redundant packages
- [ ] Making a field in `cabal.project` files to toggle detection of redundant packages
- [ ] Print out warnings/errors and set exit code when redundant packages are found

I can do all of the work, but I would like to know that this is a welcome feature before getting started.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.