The simple Stack-supplied Stack project templates (with the exception of chrisdone
, which sets -Wall
), including the default new-template
, do not set GHC flags for warnings. It has been suggested here that they should. I would like to canvas opinion: do people agree and, if they do, what flags should be set?
This 2018 article - Enable All The Warnings - advocates:
- -Weverything
- -Wno-missing-exported-signatures
- -Wno-missing-import-lists
- -Wno-missed-specialisations
- -Wno-all-missed-specialisations
- -Wno-unsafe
- -Wno-safe
- -Wno-missing-local-signatures
- -Wno-monomorphism-restriction
Would that be sensible in a default template in 2022? If not, what would be a better approach?