haskell / haskell/cabal

cabal new-build doesn't isolate include-dirs

Open
#5,430 0 comments 0 reactions 1 assignee Claimed by @typedrat View on GitHub
cabal-install: v2-build system
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

`new-build` is propagating `include-dirs` in a library component when it shouldn't, meaning that it's passing `-I`s it shouldn't to `ghc` when building the executable component.

This is why #5427 appeared to be an install problem, when it was really due to an incorrectly written (but previously harmlessly so) `.cabal` file.

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.