diff options
author | David Waern <david.waern@gmail.com> | 2008-08-11 19:41:54 +0000 |
---|---|---|
committer | David Waern <david.waern@gmail.com> | 2008-08-11 19:41:54 +0000 |
commit | a65c6206d5d226d93a2ed985d9f196931748c722 (patch) | |
tree | 59d7e412f54709839b894d4ed25b0751d84615aa /src | |
parent | 6a8d312cdba65a07b923a30cec0de2cc6a3d2da8 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/Haddock/Exception.hs | 7 |
1 files changed, 7 insertions, 0 deletions
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 |