aboutsummaryrefslogtreecommitdiff
path: root/haddock.cabal
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-08-29 00:07:42 +0000
committerIan Lynagh <igloo@earth.li>2008-08-29 00:07:42 +0000
commit2b66009d249ace92c9a7126f7949bed5b6b2c881 (patch)
tree2083135f026aee5631c97e6f1b963ed970c3b53d /haddock.cabal
parent388a5db03779ac8eeaeb780b2ed172bb0d569bbf (diff)
Fix in-tree haddock on Windows
Diffstat (limited to 'haddock.cabal')
-rw-r--r--haddock.cabal12
1 files changed, 7 insertions, 5 deletions
diff --git a/haddock.cabal b/haddock.cabal
index 5f486bd3..8756592a 100644
--- a/haddock.cabal
+++ b/haddock.cabal
@@ -57,9 +57,9 @@ 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
+flag in-ghc-tree
+ description: Are we in a GHC tree?
+ default: False
manual: True
executable haddock
@@ -73,9 +73,11 @@ executable haddock
containers,
array
- if flag(ghc-paths)
+ if flag(in-ghc-tree)
+ cpp-options: -DIN_GHC_TREE
+ extensions: ForeignFunctionInterface
+ else
build-depends: ghc-paths
- cpp-options: -DGHC_PATHS
if impl(ghc >= 6.9)
build-depends: Cabal >= 1.5, getopt