aboutsummaryrefslogtreecommitdiff
path: root/haddock.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'haddock.cabal')
-rw-r--r--haddock.cabal9
1 files changed, 7 insertions, 2 deletions
diff --git a/haddock.cabal b/haddock.cabal
index 6663fba2..706bcd75 100644
--- a/haddock.cabal
+++ b/haddock.cabal
@@ -132,8 +132,13 @@ library
containers,
array,
Cabal >= 1.5,
- ghc >= 6.12 && < 6.14,
- ghc-paths
+ ghc >= 6.12 && < 6.14
+
+ if flag(in-ghc-tree)
+ cpp-options: -DIN_GHC_TREE
+ extensions: ForeignFunctionInterface
+ else
+ build-depends: ghc-paths
if flag(test)
cpp-options: -DTEST