aboutsummaryrefslogtreecommitdiff
path: root/haddock.cabal
diff options
context:
space:
mode:
authorDavid Waern <david.waern@gmail.com>2009-08-14 17:14:28 +0000
committerDavid Waern <david.waern@gmail.com>2009-08-14 17:14:28 +0000
commit70b0328fbb31f898e002f9405f85ec4e901c5f4f (patch)
tree3fc45f6acb22235ae6a1d99b2d4cc8c97eadf32b /haddock.cabal
parent877ff1c287427f54510d01f3a01424a86f9a970c (diff)
Version .haddock files made with GHC 6.10.3/4 correclty
Diffstat (limited to 'haddock.cabal')
-rw-r--r--haddock.cabal12
1 files changed, 10 insertions, 2 deletions
diff --git a/haddock.cabal b/haddock.cabal
index 4af5e71f..b3902e92 100644
--- a/haddock.cabal
+++ b/haddock.cabal
@@ -112,8 +112,12 @@ executable haddock
-- Cabal doesn't define __GHC_PATCHLEVEL__
if impl(ghc == 6.10.1)
cpp-options: -D__GHC_PATCHLEVEL__=1
- if impl(ghc >= 6.10.1.20090223)
+ if impl(ghc == 6.10.2)
cpp-options: -D__GHC_PATCHLEVEL__=2
+ if impl(ghc == 6.10.3)
+ cpp-options: -D__GHC_PATCHLEVEL__=3
+ if impl(ghc == 6.10.4)
+ cpp-options: -D__GHC_PATCHLEVEL__=4
library
hs-source-dirs: src
@@ -129,8 +133,12 @@ library
-- Cabal doesn't define __GHC_PATCHLEVEL__
if impl(ghc == 6.10.1)
cpp-options: -D__GHC_PATCHLEVEL__=1
- if impl(ghc >= 6.10.1.20090223)
+ if impl(ghc == 6.10.2)
cpp-options: -D__GHC_PATCHLEVEL__=2
+ if impl(ghc == 6.10.3)
+ cpp-options: -D__GHC_PATCHLEVEL__=3
+ if impl(ghc == 6.10.4)
+ cpp-options: -D__GHC_PATCHLEVEL__=4
if flag(in-ghc-tree)
buildable: False