X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FGHC.hs;h=cb433c3528a9a84248969e7844ed38916c96d8c9;hb=acb9c929a4ab025972027b55b4c18d4410207d29;hp=6f42aedf29bd54b89f7bf361ed3d2fc1ae0bc387;hpb=add9b7f13aad3a6ec5fdb4512c79ee9c5d95b3d4;p=ghc-hetmet.git diff --git a/compiler/main/GHC.hs b/compiler/main/GHC.hs index 6f42aed..cb433c3 100644 --- a/compiler/main/GHC.hs +++ b/compiler/main/GHC.hs @@ -312,7 +312,7 @@ import Exception import Data.IORef import System.FilePath import System.IO -import System.IO.Error ( try, isDoesNotExistError ) +import System.IO.Error ( isDoesNotExistError ) import Prelude hiding (init) @@ -2067,7 +2067,7 @@ summariseModule hsc_env old_summary_map is_boot (L loc wanted_mod) case maybe_buf of Just (_,t) -> check_timestamp old_summary location src_fn t Nothing -> do - m <- System.IO.Error.try (getModificationTime src_fn) + m <- tryIO (getModificationTime src_fn) case m of Right t -> check_timestamp old_summary location src_fn t Left e | isDoesNotExistError e -> find_it