From 27e66a56f09669646da6c87a762f36ea9fbfba93 Mon Sep 17 00:00:00 2001 From: David Waern Date: Sat, 28 Nov 2009 16:58:39 +0000 Subject: Add a test flag that brings in QuickCheck --- haddock.cabal | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/haddock.cabal b/haddock.cabal index fc61172a..49048a28 100644 --- a/haddock.cabal +++ b/haddock.cabal @@ -63,6 +63,10 @@ flag in-ghc-tree default: False manual: True +flag test + default: False + manual: True + executable haddock build-depends: base >= 4.0.0.0 && < 4.3.0.0, @@ -80,6 +84,10 @@ executable haddock else build-depends: ghc-paths + if flag(test) + cpp-options: -DTEST + build-depends: QuickCheck + main-is: Main.hs hs-source-dirs: src extensions: CPP, PatternGuards, DeriveDataTypeable, -- cgit v1.2.3