From 8771bb0a27598470f034c93128ac6848180f76b1 Mon Sep 17 00:00:00 2001 From: "david.waern" Date: Sat, 20 Mar 2010 00:56:30 +0000 Subject: Fix library part of cabal file when in ghc tree --- haddock.cabal | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'haddock.cabal') 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 -- cgit v1.2.3