Skip to content

Set ghcOptions on all local pacakges #1282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kirelagin opened this issue Nov 4, 2021 · 3 comments
Closed

Set ghcOptions on all local pacakges #1282

kirelagin opened this issue Nov 4, 2021 · 3 comments
Assignees
Labels
preserved Keep stale bot away

Comments

@kirelagin
Copy link
Contributor

I think, it is pretty normal to use haskell.nix on the CI, and also it is a good idea to have -Werror on the CI, but only for local (project) packages. Stack supports this by allowing one to set options on a fake package called $local, but, arguably, stack.yaml is not the right place to have this, since during development you don’t actually want to have -Werror.

In haskell.nix it feels like some combination of modules on e.g. stackProject and haskellLib.selectProjectPackages could do the trick, but this is, obviously, a very bad idea and won’t work because of recursion. The problem is that we need to have the result of stackProject to get at list of local packages, but then what we want to craft based on this output is actually one of the inputs of the function.

Prior art:

@stale
Copy link

stale bot commented Sep 28, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Sep 28, 2022
@michaelpj
Copy link
Collaborator

Still annoying.

@stale stale bot removed the wontfix label Sep 28, 2022
@hamishmack hamishmack added the preserved Keep stale bot away label Sep 29, 2022
@andreabedini
Copy link
Member

Closing in favour of #1149

@andreabedini andreabedini self-assigned this Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preserved Keep stale bot away
Projects
None yet
Development

No branches or pull requests

4 participants