From cb9d9f6f97d73bafc3b7b0c12400b42405ea2341 Mon Sep 17 00:00:00 2001 From: Michael Xavier Date: Wed, 15 Apr 2015 11:58:07 -0700 Subject: [PATCH] Conditionally build doctests --- bloodhound.cabal | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/bloodhound.cabal b/bloodhound.cabal index f209ce4..f951db9 100644 --- a/bloodhound.cabal +++ b/bloodhound.cabal @@ -49,20 +49,23 @@ test-suite tests type: exitcode-stdio-1.0 main-is: tests.hs hs-source-dirs: tests - build-depends: base, - bloodhound, - http-client, - http-types, - containers, - hspec >= 1.8 && <2.1, - text, - time, - aeson, - semigroups, - QuickCheck, - vector, - unordered-containers >= 0.2.5.0 && <0.3, - mtl + if impl(ghc >= 7.8) + build-depends: base, + bloodhound, + http-client, + http-types, + containers, + hspec >= 1.8 && <2.1, + text, + time, + aeson, + semigroups, + QuickCheck, + vector, + unordered-containers >= 0.2.5.0 && <0.3, + mtl + else + buildable: False default-language: Haskell2010 test-suite doctests