diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2017-07-20 09:08:47 +0200 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2017-07-20 09:09:15 +0200 |
commit | 8ed89b1899b32e94ca48f5c70f909d10e740c23a (patch) | |
tree | fc55ab20692f3c4dbcb395a09f958f4c0974f777 | |
parent | e9894ffb7777c6cc73100bd3339a4174bd3b9155 (diff) |
Fix compilation of lib:haddock-library w/ GHC < 8
-rw-r--r-- | haddock-library/haddock-library.cabal | 6 |
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 |