]> gitweb.michael.orlitzky.com - hath.git/commitdiff
Add more warnings and use the GHC-8.x -Wfoo style.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 6 Jul 2016 21:34:12 +0000 (17:34 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 6 Jul 2016 21:34:12 +0000 (17:34 -0400)
hath.cabal

index 2ef059b77b6dd440228476ecc64109e88b045c0a..73ce76dce05eb156ff6a00874bbdce785a6acd42 100644 (file)
@@ -114,16 +114,11 @@ executable hath
     tasty-quickcheck            >= 0.8.1
 
   ghc-options:
-    -Wall
-    -fwarn-hi-shadowing
-    -fwarn-missing-signatures
-    -fwarn-name-shadowing
-    -fwarn-orphans
-    -fwarn-type-defaults
-    -fwarn-tabs
-    -fwarn-incomplete-record-updates
-    -fwarn-monomorphism-restriction
-    -fwarn-unused-do-bind
+    -Weverything
+    -Wno-implicit-prelude
+    -Wno-safe
+    -Wno-unsafe
+    -Wno-all-missed-specialisations
     -rtsopts
     -threaded
     -optc-O3
@@ -153,16 +148,11 @@ test-suite testsuite
 
   -- It's not entirely clear to me why I have to reproduce all of this.
   ghc-options:
-    -Wall
-    -fwarn-hi-shadowing
-    -fwarn-missing-signatures
-    -fwarn-name-shadowing
-    -fwarn-orphans
-    -fwarn-type-defaults
-    -fwarn-tabs
-    -fwarn-incomplete-record-updates
-    -fwarn-monomorphism-restriction
-    -fwarn-unused-do-bind
+    -Weverything
+    -Wno-implicit-prelude
+    -Wno-safe
+    -Wno-unsafe
+    -Wno-all-missed-specialisations
     -rtsopts
     -threaded
     -optc-O3