From 6c73c9dff3f293360942a1c0f72e9604f99f5b38 Mon Sep 17 00:00:00 2001 From: Thomas Schilling Date: Tue, 24 Feb 2009 18:11:00 +0000 Subject: Define __GHC_PATCHLEVEL__ for recent version of GHC (stable). --- haddock.cabal | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'haddock.cabal') 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) -- cgit v1.2.3