X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=compiler%2Fmain%2FDriverMkDepend.hs;h=481cd0c983f51f790bb0edd649e0e9c41543b6e1;hb=81466110ff8104ca60e20d617bab83f6f78f0ec2;hp=307e43f3147ecf1eb95e963b641a82df53c16f78;hpb=e61fe59d9567fbad053a87f897e6c8198dc95794;p=ghc-hetmet.git diff --git a/compiler/main/DriverMkDepend.hs b/compiler/main/DriverMkDepend.hs index 307e43f..481cd0c 100644 --- a/compiler/main/DriverMkDepend.hs +++ b/compiler/main/DriverMkDepend.hs @@ -31,6 +31,7 @@ import SrcLoc import Data.List import FastString +import Exception import ErrUtils ( debugTraceMsg, putMsg ) import System.Exit ( ExitCode(..), exitWith ) @@ -126,9 +127,9 @@ beginMkDependHS dflags = do then return () else chuck - catchJust ioErrors slurp + catchIO slurp (\e -> if isEOFError e then return () else ioError e) - catchJust ioErrors chuck + catchIO chuck (\e -> if isEOFError e then return () else ioError e) return (Just makefile_hdl) @@ -295,7 +296,7 @@ endMkDependHS dflags hPutStrLn tmp_hdl l slurp - catchJust ioErrors slurp + catchIO slurp (\e -> if isEOFError e then return () else ioError e) hClose hdl