[project @ 2005-11-05 00:23:36 by ross]
[ghc-hetmet.git] / ghc / utils / ghc-pkg / Main.hs
index e576c9c..04170c4 100644 (file)
@@ -47,7 +47,11 @@ import System        ( getArgs, getProgName, getEnv,
                  exitWith, ExitCode(..)
                )
 import System.IO
+#if __GLASGOW_HASKELL__ >= 600
 import System.IO.Error (try)
+#else
+import System.IO (try)
+#endif
 import Data.List ( isPrefixOf, isSuffixOf, intersperse, groupBy, sortBy )
 
 #ifdef mingw32_HOST_OS