commercialhaskell / commercialhaskell/stack
Should warn about overlapping "hs-source-dirs"
Open
component: output (UI/UX)
newcomer friendly
- Dominant language
- Haskell
- Stars
- 4.1k
- Forks
- 850
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 4
Description
The logic should be that if a package component declares a dependency on a library or sub-library in the package, then `hs-source-dirs` should not overlap. This is because imports that occur within the executable / test-suite / benchmark / sub-library etc will instead recompile the code, which is a waste.
It also potentially has other negative effects - https://github.com/commercialhaskell/stack/issues/3109#issuecomment-343911878
Contributor guide
Assessment
This issue has not been assessed yet.