From 3bedb421f81d6ebe5245df8a1326517b19271e2b Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Wed, 27 Aug 2008 18:07:02 +0000 Subject: Add a manual Cabal flag to control the ghc-paths dependency --- haddock.cabal | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'haddock.cabal') diff --git a/haddock.cabal b/haddock.cabal index 31a4ef06..985a2a2b 100644 --- a/haddock.cabal +++ b/haddock.cabal @@ -57,20 +57,25 @@ data-files: html/minus.gif html/plus.gif - +flag ghc-paths + description: Should we use ghc-paths to find GHC? This is always enabled, except when building in a GHC tree. + default: True + manual: True executable haddock build-depends: base, haskell98, ghc >= 6.8.2 && <= 6.9, - ghc-paths, filepath, directory, pretty, containers, array + if flag(ghc-paths) + build-depends: ghc-paths + if impl(ghc >= 6.9) build-depends: Cabal >= 1.5 -- cgit v1.2.3