Avoid setting Ormolu dev flag in Cabal config#139
Conversation
|
I've just noticed while writing the above that #138 takes the opposite approach and sets |
|
My preference would be to turn on the |
|
Personally, I would be very frustrated that a working build locally with default settings fails on CI. I expect a passing |
Ah. Well I wouldn't, in the same way that I wouldn't expect running |
|
🤷 ok, up to you. You can remove -Werror from all the stack.yaml files, then. |
I think I'll have to, sorry. Is it easy enough to re-enable locally to get the behaviour you want (I'm not very familiar with Stack)? Perhaps it's worth starting an r/haskell thread or similar to find out what other people do here, and why. In my other projects, including at work, |
|
The right course of action in that case would actually be to remove all references to |
It's easy either way. To turn it on, you just add (My other argument is also that Ormolu devs turn on the
No, Keep the change to |
Well, on the other hand, for the sake of argument:
But I don't really care much either way, so I'll do it your way! |
|
Well either way, we'll need to make sure to add the dev flag on CI |
We've inherited it from upstream, but it has no effect here, since we're not building Ormolu.
273bba0 to
2c093ed
Compare
|
Rebase against master and resolved comments according to discussion:
To reiterate, I personally think dev/Werror should be on by default, since it's easy to turn off if you make changes and want to temporarily turn off warnings (both cabal + stack support To try to reduce number of open PRs, I'm merging this as soon as CI passes. If changes are desired, we can open up another PR. |
2c093ed to
02fc65c
Compare
Carrying on the conversation from #129 (comment):
I've never personally understood the desire to enable
-Werror, other than when one wants to ensure that builds output a non-zero exit code in the presence of warnings, e.g. in CI. During interactive development, surely it's often useful to run code that contains potentially-harmless issues like unused variables, or missing type signatures? I feel like I must be missing something.Anyway, while this PR doesn't really change anything, it draws attention to the fact that we enable
-Werrorwhen building with Stack, but not Cabal, which is weird.