commercialhaskell / commercialhaskell/stack

Support extensions in stack.yaml

Open
#3,137 12 comments 2 reactions 0 assignees View on GitHub
type: enhancement
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

If you have multiple projects in a single stack.yaml, and want them to share the same list of default extensions, that's quite hard to do. You can specify:

```
ghc-options:
"*": -XFoo
```

But that has two problems:

* It gets applied to packages you install as dependencies that are not in your project.
* It doesn't get applied when running `stack haddock`, so the extensions aren't reflected.

One solution would be adding an explicit `extensions` key which is plumbed through everywhere.

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.