haskell / haskell/cabal

ghc-options in cabal.project file aren't applied

Open
#6,147 5 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

In my cabal.project file I have

```
packages: common, stub, client, dwarfadt, dwarf

package dwarf
ghc-options: -Werroradasdasd
```

So I expect that when I build the `dwarf` package, the extra options are passed to the package. However, it seems these options are completely ignored when running `cabal new-build dwarf`.

Perhaps there is a problem applying `ghc-options` to components?

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.