diff options
author | David Waern <david.waern@gmail.com> | 2008-08-13 21:43:58 +0000 |
---|---|---|
committer | David Waern <david.waern@gmail.com> | 2008-08-13 21:43:58 +0000 |
commit | befdccf529dcb60d5f2a909e308b85c958e6100e (patch) | |
tree | e8f9e917977bd5394b16629eac3d80add9b1a554 /haddock.cabal | |
parent | 8af2688ea2de3172a7ef6d91b47d2a78fd365916 (diff) |
Add __GHC_PATCHLEVEL__ symbol also when building the library
Diffstat (limited to 'haddock.cabal')
-rw-r--r-- | haddock.cabal | 6 |
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 |