aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Waern <david.waern@gmail.com>2008-08-13 21:43:58 +0000
committerDavid Waern <david.waern@gmail.com>2008-08-13 21:43:58 +0000
commitbefdccf529dcb60d5f2a909e308b85c958e6100e (patch)
treee8f9e917977bd5394b16629eac3d80add9b1a554
parent8af2688ea2de3172a7ef6d91b47d2a78fd365916 (diff)
Add __GHC_PATCHLEVEL__ symbol also when building the library
-rw-r--r--haddock.cabal6
1 files changed, 6 insertions, 0 deletions
diff --git a/haddock.cabal b/haddock.cabal
index ea63079e..22547eab 100644
--- a/haddock.cabal
+++ b/haddock.cabal
@@ -123,3 +123,9 @@ library
Haddock.Types
Haddock.InterfaceFile
Haddock.Exception
+
+ -- Cabal doesn't define __GHC_PATCHLEVEL__
+ if impl(ghc == 6.8.3)
+ cpp-options: -D__GHC_PATCHLEVEL__=3
+ if impl(ghc == 6.8.2)
+ cpp-options: -D__GHC_PATCHLEVEL__=2