From a65c6206d5d226d93a2ed985d9f196931748c722 Mon Sep 17 00:00:00 2001 From: David Waern Date: Mon, 11 Aug 2008 19:41:54 +0000 Subject: Import Control.OldException instead of C.Exception when using ghc >= 6.9 We should really test for base version instead, but I don't currently know which version to test for. --- src/Haddock/Exception.hs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/Haddock/Exception.hs b/src/Haddock/Exception.hs index a1886ba2..0ce002b0 100644 --- a/src/Haddock/Exception.hs +++ b/src/Haddock/Exception.hs @@ -15,7 +15,14 @@ module Haddock.Exception ( import Data.Typeable + + +-- TODO: change this to test for base version instead +#if __GLASGOW_HASKELL__ >= 609 +import Control.OldException +#else import Control.Exception +#endif data HaddockException = HaddockException String deriving Typeable -- cgit v1.2.3