Surpress "Declared and used flag sets differ" warning when `build-type: Custom` is set
Open
cabal-install: cmd/check
Cabal: custom
type: enhancement
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
As flags can still be used by the file's `Setup.hs` package, this warning can sometimes be spurious (the `Setup.hs` file may behave differently depending on whether the flag is set).
Contributor guide
Research direction
Start by locating the implementation and tests for the "Declared and used flag sets differ" warning, then inspect how build-type: Custom and Setup.hs packages are handled. Done means the warning is suppressed for this case without changing flag behavior; add or update coverage for a Custom build that uses flags in Setup.hs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100