From: simonmar Date: Wed, 18 Jan 2006 10:06:36 +0000 (+0000) Subject: [project @ 2006-01-18 10:06:36 by simonmar] X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=54fcddbea16bb98dec03593569d1f8372332fe50 [project @ 2006-01-18 10:06:36 by simonmar] Fix build on 5.04.x again --- diff --git a/ghc/compiler/main/GHC.hs b/ghc/compiler/main/GHC.hs index 37d9739..e278626 100644 --- a/ghc/compiler/main/GHC.hs +++ b/ghc/compiler/main/GHC.hs @@ -241,10 +241,16 @@ import System.Time ( ClockTime ) import Control.Exception as Exception hiding (handle) import Data.IORef import System.IO -import System.IO.Error ( try, isDoesNotExistError ) +import System.IO.Error ( isDoesNotExistError ) import System.IO.Unsafe ( unsafePerformIO ) import Prelude hiding (init) +#if __GLASGOW_HASKELL__ < 600 +import System.IO as System.IO.Error ( try ) +#else +import System.IO.Error ( try ) +#endif + -- ----------------------------------------------------------------------------- -- Exception handlers