commercialhaskell / commercialhaskell/stack

os/platform-specific fields in stack.yaml

Open
#3,369 11 comments 9 reactions 0 assignees View on GitHub
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

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.