[project @ 2006-01-18 10:06:36 by simonmar]
authorsimonmar <unknown>
Wed, 18 Jan 2006 10:06:36 +0000 (10:06 +0000)
committersimonmar <unknown>
Wed, 18 Jan 2006 10:06:36 +0000 (10:06 +0000)
Fix build on 5.04.x again

ghc/compiler/main/GHC.hs

index 37d9739..e278626 100644 (file)
@@ -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