aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/haddock-api.cabal
diff options
context:
space:
mode:
authorAlec Theriault <alec.theriault@gmail.com>2020-03-28 13:12:50 -0400
committerAlec Theriault <alec.theriault@gmail.com>2020-03-28 13:36:25 -0400
commit8edc70fef3f3a54238d981153a6ac42b2d7f0bde (patch)
tree9f7b22ca33f4d49cf90bce26c323660e4ca6b6bb /haddock-api/haddock-api.cabal
parentb33e4bebce0fb98acfc2c1f5efc370e95a061c86 (diff)
Cleanup up GHC flags in `.cabal` files
* enable more useful warning flags in `haddock-api`, handle the new warnings generated * remove `-fwarn-tabs` (now we'd use `-Wtabs`, but this has been in `-Wall` for a while now)
Diffstat (limited to 'haddock-api/haddock-api.cabal')
-rw-r--r--haddock-api/haddock-api.cabal12
1 files changed, 8 insertions, 4 deletions
diff --git a/haddock-api/haddock-api.cabal b/haddock-api/haddock-api.cabal
index 54255e09..4abfd984 100644
--- a/haddock-api/haddock-api.cabal
+++ b/haddock-api/haddock-api.cabal
@@ -63,10 +63,14 @@ library
hs-source-dirs: src
- ghc-options: -funbox-strict-fields -Wall -fwarn-tabs -O2
- ghc-options: -Wall
- if impl(ghc >= 8.0)
- ghc-options: -Wcompat -Wnoncanonical-monad-instances
+ ghc-options: -funbox-strict-fields -O2
+ -Wall
+ -Wcompat
+ -Widentities
+ -Wredundant-constraints
+ -Wnoncanonical-monad-instances
+ -Wmissing-home-modules
+
exposed-modules:
Documentation.Haddock