Don't use "deriving Typeable" (for portability reasons)
[ghc-base.git] / System / IO.hs
index a2edaec..93166b9 100644 (file)
@@ -161,6 +161,8 @@ module System.IO (
     openBinaryTempFile,
   ) where
 
+import Control.Exception hiding (bracket)
+
 #ifndef __NHC__
 import Data.Bits
 import Data.List
@@ -171,7 +173,7 @@ import System.Posix.Internals
 #endif
 
 #ifdef __GLASGOW_HASKELL__
-import GHC.Exception    as ExceptionBase hiding (catch)
+import GHC.IOBase       as ExceptionBase
 #endif
 #ifdef __HUGS__
 import Hugs.Exception   as ExceptionBase