From 8ed89b1899b32e94ca48f5c70f909d10e740c23a Mon Sep 17 00:00:00 2001 From: Herbert Valerio Riedel Date: Thu, 20 Jul 2017 09:08:47 +0200 Subject: Fix compilation of lib:haddock-library w/ GHC < 8 --- haddock-library/haddock-library.cabal | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'haddock-library/haddock-library.cabal') 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 -- cgit v1.2.3