haskell / haskell/cabal

ghc-options (and maybe other things) passed in the wrong order in a program-options section

Open
#9,290 0 comments 1 reaction 0 assignees View on GitHub
re: ghc-options re: project-file type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

related to #8900

I noticed this with the following on 9.6.3 and cabal 3.10.1.0, but same behavior with `ghc-8.10.7` and `cabal-3.6.2.0` (at least it isn't new I guess):

```
program-options
ghc-options: -Wall
ghc-options: -Werror
-- we'd expect this to override above. It does not; we need to swap the lines:
ghc-options: -Wwarn
```

The actual context was attempting to use `-fno-info-table-map-with-fallback` + `-fno-info-table-map-with-stack`

I was curious if `cpp-options` were similarly passed out of order, but that's not a supported field. Actually I guess this whole section is basically undocumented still…

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.