diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-08-08 20:29:37 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-08-08 20:29:37 -0700 |
commit | 2f0bff0f541db82d04c03240af643770dabf9a03 (patch) | |
tree | ab53c16778d231c8f6590f1e9375a11fe1a2fb3a | |
parent | 34d3f25e87240b4641d00b9f206e7301af932e42 (diff) | |
download | pandoc-2f0bff0f541db82d04c03240af643770dabf9a03.tar.gz |
Use extra ghc warnings.
In addition to `-Wall`:
`-Wincomplete-uni-patterns -Wincomplete-record-updates -Wredundant-constraints -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances`
-rw-r--r-- | .travis.yml | 4 | ||||
-rw-r--r-- | pandoc.cabal | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index dbccb151c..4477efe8a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -119,12 +119,12 @@ script: case "$BUILD" in stack) ulimit -n 4096 - stack --no-terminal $ARGS test --flag 'aeson:fast' --flag pandoc:embed_data_files --haddock --no-haddock-deps --ghc-options="-O0 -Wall -fno-warn-unused-do-bind -Werror" + stack --no-terminal $ARGS test --flag 'aeson:fast' --flag pandoc:embed_data_files --haddock --no-haddock-deps --ghc-options="-O0 -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates -Wredundant-constraints -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -fno-warn-unused-do-bind -Werror" ;; cabal) cabal sdist --output-directory=sourcedist && \ cd sourcedist && \ - cabal configure --enable-tests --enable-benchmarks -v2 -fembed_data_files -ffast --ghc-options="-O0 -Wall -fno-warn-unused-do-bind -Werror" && \ + cabal configure --enable-tests --enable-benchmarks -v2 -fembed_data_files -ffast --ghc-options="-O0 -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates -fno-warn-unused-do-bind -Werror" && \ cabal build && \ cabal test ;; diff --git a/pandoc.cabal b/pandoc.cabal index 53720be3f..a190ee68a 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -344,7 +344,7 @@ Library other-modules: Text.Pandoc.Data if os(windows) Cpp-options: -D_WINDOWS - Ghc-Options: -Wall -fno-warn-unused-do-bind + Ghc-Options: -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates -Wredundant-constraints -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -fno-warn-unused-do-bind Ghc-Prof-Options: -fprof-auto-exported Default-Language: Haskell98 Other-Extensions: PatternGuards, OverloadedStrings, |