fix 5.04 compile
[ghc-hetmet.git] / compiler / main / HeaderInfo.hs
index 847d193..dc97e20 100644 (file)
@@ -35,9 +35,9 @@ import Bag            ( emptyBag, listToBag )
 
 import Distribution.Compiler
 
-import EXCEPTION       ( throwDyn )
-import IO
-import List
+import Control.Exception
+import System.IO
+import Data.List
 
 #if __GLASGOW_HASKELL__ >= 601
 import System.IO               ( openBinaryFile )
@@ -66,7 +66,7 @@ getImports dflags buf filename = do
        PFailed span err -> parseError span err
        POk _ rdr_module -> 
          case rdr_module of
-           L _ (HsModule mod _ imps _ _) ->
+           L _ (HsModule mod _ imps _ _ _ _ _) ->
              let
                mod_name | Just located_mod <- mod = located_mod
                         | otherwise               = L noSrcSpan mAIN_NAME
@@ -92,7 +92,8 @@ getImpMod (ImportDecl located_mod _ _ _ _) = located_mod
 getOptionsFromFile :: FilePath            -- input file
                    -> IO [Located String] -- options, if any
 getOptionsFromFile filename
-    = bracket (openBinaryFile filename ReadMode)
+    = System.IO.bracket
+             (openBinaryFile filename ReadMode)
               (hClose)
               (\handle ->
                    do buf <- hGetStringBufferBlock handle blockSize