Skip to content
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

An equivalent of failOnAllWarnings #773

Closed
NorfairKing opened this issue Jul 19, 2020 · 2 comments
Closed

An equivalent of failOnAllWarnings #773

NorfairKing opened this issue Jul 19, 2020 · 2 comments

Comments

@NorfairKing
Copy link

NorfairKing commented Jul 19, 2020

It looks like there is no equivalent of failOnAllWarnings from nixpkgs.
I tried a bunch of variations of buildFlags = [ "-Wall" "-Werror" ] but there doesn't seem to be a buildFlags option.

@hamishmack
Copy link
Collaborator

These are ghc options. For stack projects these can be set in the stack.yaml file like this (where test-ghc-options is the name of the package).

Unfortunately while they can be set in cabal.project files as well (like this) we do not have a way to pick them up from there in haskell.nix yet.

You can set them in nix like this (works for cabal and stack projects).

@NorfairKing
Copy link
Author

NorfairKing commented Jul 20, 2020

Alright! Now I just need to be able to set it for all local packages at once.

I'll have a look at #298 and #519 which seems to be a duplicate of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants