aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schilling <nominolo@googlemail.com>2009-02-24 18:11:00 +0000
committerThomas Schilling <nominolo@googlemail.com>2009-02-24 18:11:00 +0000
commit6c73c9dff3f293360942a1c0f72e9604f99f5b38 (patch)
tree218ca938c4f44f89ee560c3602462b92f1061495
parentd13ce5a2d38e9cc9a2415fb22eeb2e6c5f8000c6 (diff)
Define __GHC_PATCHLEVEL__ for recent version of GHC (stable).
-rw-r--r--haddock.cabal6
1 files changed, 2 insertions, 4 deletions
diff --git a/haddock.cabal b/haddock.cabal
index 98bf7fa5..a9b3cac7 100644
--- a/haddock.cabal
+++ b/haddock.cabal
@@ -120,11 +120,9 @@ executable haddock
-- Cabal doesn't define __GHC_PATCHLEVEL__
if impl(ghc == 6.8.3)
cpp-options: -D__GHC_PATCHLEVEL__=3
- if impl(ghc == 6.8.2)
+ if impl(ghc == 6.8.2) || impl(ghc >= 6.10.1.20090223)
cpp-options: -D__GHC_PATCHLEVEL__=2
-
-
library
hs-source-dirs: src
extensions: CPP, PatternGuards, DeriveDataTypeable,
@@ -141,7 +139,7 @@ library
-- Cabal doesn't define __GHC_PATCHLEVEL__
if impl(ghc == 6.8.3)
cpp-options: -D__GHC_PATCHLEVEL__=3
- if impl(ghc == 6.8.2)
+ if impl(ghc == 6.8.2) || impl(ghc >= 6.10.1.20090223)
cpp-options: -D__GHC_PATCHLEVEL__=2
if flag(in-ghc-tree)