aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2017-07-20 09:08:47 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2017-07-20 09:09:15 +0200
commit8ed89b1899b32e94ca48f5c70f909d10e740c23a (patch)
treefc55ab20692f3c4dbcb395a09f958f4c0974f777
parente9894ffb7777c6cc73100bd3339a4174bd3b9155 (diff)
Fix compilation of lib:haddock-library w/ GHC < 8
-rw-r--r--haddock-library/haddock-library.cabal6
1 files changed, 6 insertions, 0 deletions
diff --git a/haddock-library/haddock-library.cabal b/haddock-library/haddock-library.cabal
index 3b11761e..9b967c00 100644
--- a/haddock-library/haddock-library.cabal
+++ b/haddock-library/haddock-library.cabal
@@ -50,6 +50,12 @@ library
Data.Attoparsec.Number
Documentation.Haddock.Parser.Util
+ ghc-options: -Wall
+ if impl(ghc >= 8.0)
+ ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
+ else
+ build-depends: semigroups ^>= 0.18.3, fail ^>= 4.9.0.0
+
test-suite spec
type: exitcode-stdio-1.0
default-language: Haskell2010