diff options
author | David Waern <david.waern@gmail.com> | 2008-08-13 21:45:29 +0000 |
---|---|---|
committer | David Waern <david.waern@gmail.com> | 2008-08-13 21:45:29 +0000 |
commit | c6bc0c686dded47980345804c384b05a7f0995f2 (patch) | |
tree | 5737df724fd83e1f89b96b8e241891e2318746eb /src/Haddock | |
parent | 8fe13e0015d3e4a7190724c5c9a2442c1f176474 (diff) |
Follow extensible exceptions changes
Diffstat (limited to 'src/Haddock')
-rw-r--r-- | src/Haddock/Exception.hs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Haddock/Exception.hs b/src/Haddock/Exception.hs index 0ce002b0..b537127c 100644 --- a/src/Haddock/Exception.hs +++ b/src/Haddock/Exception.hs @@ -15,19 +15,19 @@ 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 -throwE str = throwDyn (HaddockException str) instance Show HaddockException where show (HaddockException str) = str + + +#if __GLASGOW_HASKELL__ >= 609 +instance Exception HaddockException +throwE str = throw (HaddockException str) +#else +throwE str = throwDyn (HaddockException str) +#endif |