commercialhaskell / commercialhaskell/stack
os/platform-specific fields in stack.yaml
Open
type: discuss
type: enhancement
- Dominant language
- Haskell
- Stars
- 4.1k
- Forks
- 850
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 4
Description
I think it would be nice to have a way of specifying fields that are os-specific. Something like this:
```yaml
os-specific:
windows:
ghc-variant: integersimple
flags:
hashable:
integer-gmp: false
sceintific:
integer-simple: true
...
```
Thus, one can keep more build information within stack and write less additional scripts.
NOTE: This could be possible also by modifying the confHook in Setup.hs if stack didn't bypass the configure step.
Contributor guide
Assessment
This issue has not been assessed yet.