X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FHeaderInfo.hs;h=156613773e684d362edd488b3c20ce04a0b5cf97;hb=80564ddc183ea98856994112858f0b9f3e178f94;hp=847d193c28876eeaae841109a8378667cda8d372;hpb=61d2625ae2e6a4cdae2ffc92df828905e81c24cc;p=ghc-hetmet.git diff --git a/compiler/main/HeaderInfo.hs b/compiler/main/HeaderInfo.hs index 847d193..1566137 100644 --- a/compiler/main/HeaderInfo.hs +++ b/compiler/main/HeaderInfo.hs @@ -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