aboutsummaryrefslogtreecommitdiff
path: root/haddock.cabal
diff options
context:
space:
mode:
authordavid.waern <david.waern@gmail.com>2010-03-20 00:56:30 +0000
committerdavid.waern <david.waern@gmail.com>2010-03-20 00:56:30 +0000
commit8771bb0a27598470f034c93128ac6848180f76b1 (patch)
tree089e715eedc4853c665a35c5de2622f934a5221b /haddock.cabal
parent0ce3d24017a44fc76c442ffd6246ce8eeaa001f1 (diff)
Fix library part of cabal file when in ghc tree
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