You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 1, 2025. It is now read-only.
My goal with enabling -Werror in cabal.project for local builds was to make it harder to run into cases where the build passes locally but fails in CI because e.g. you’ve got warnings in some file that you haven’t touched recently and so you don’t see them. In practice, it’s just become a pain for any workflow using cabal build instead of e.g. script/repl, often necessary to e.g. iterate on haskell-tree-sitter stuff.
Thus, I kinda think we should remove the setting in cabal.project and only enable it in CI builds.
The text was updated successfully, but these errors were encountered:
I use cabal build a lot and would love this. I think we can just do it by adding --ghc-options=“-Werror” to our invocation of cabal configure in haskell.yml.
System/Random.hs:43:1: error: [-Wtabs, -Werror=tabs]
Tab character found here, and in 74 further locations.
Please use spaces instead.
|
43 | (
| ^^^^^^^^
My goal with enabling
-Werror
incabal.project
for local builds was to make it harder to run into cases where the build passes locally but fails in CI because e.g. you’ve got warnings in some file that you haven’t touched recently and so you don’t see them. In practice, it’s just become a pain for any workflow usingcabal build
instead of e.g.script/repl
, often necessary to e.g. iterate onhaskell-tree-sitter
stuff.Thus, I kinda think we should remove the setting in
cabal.project
and only enable it in CI builds.The text was updated successfully, but these errors were encountered: