aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Waern <david.waern@gmail.com>2009-03-21 14:59:26 +0000
committerDavid Waern <david.waern@gmail.com>2009-03-21 14:59:26 +0000
commit045e9c49bf18575052dd572194dd05fc029e0242 (patch)
tree68c86982b7cef2d59dfba04c3ef964296aae3428
parent5e7488a1fce9617e368874e47db8c0939096dbaf (diff)
Define __GHC_PATCHLEVEL__=1 when using ghc-6.10.1
-rw-r--r--haddock.cabal4
1 files changed, 4 insertions, 0 deletions
diff --git a/haddock.cabal b/haddock.cabal
index b0829667..7b999430 100644
--- a/haddock.cabal
+++ b/haddock.cabal
@@ -118,6 +118,8 @@ executable haddock
Haddock.GHC
-- Cabal doesn't define __GHC_PATCHLEVEL__
+ if impl(ghc == 6.10.1)
+ cpp-options: -D__GHC_PATCHLEVEL__=1
if impl(ghc == 6.8.3)
cpp-options: -D__GHC_PATCHLEVEL__=3
if impl(ghc == 6.8.2) || impl(ghc >= 6.10.1.20090223)
@@ -137,6 +139,8 @@ library
Haddock.GHC.Utils
-- Cabal doesn't define __GHC_PATCHLEVEL__
+ if impl(ghc == 6.10.1)
+ cpp-options: -D__GHC_PATCHLEVEL__=1
if impl(ghc == 6.8.3)
cpp-options: -D__GHC_PATCHLEVEL__=3
if impl(ghc == 6.8.2) || impl(ghc >= 6.10.1.20090223)