From 54fcddbea16bb98dec03593569d1f8372332fe50 Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 18 Jan 2006 10:06:36 +0000 Subject: [PATCH] [project @ 2006-01-18 10:06:36 by simonmar] Fix build on 5.04.x again --- ghc/compiler/main/GHC.hs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 1.7.10.4