From 080a6a8a80f9d718482681e83d22ecf79a0a5688 Mon Sep 17 00:00:00 2001 From: ross Date: Sat, 5 Nov 2005 00:23:36 +0000 Subject: [PATCH] [project @ 2005-11-05 00:23:36 by ross] fix for pre-6.0 ghc's --- ghc/utils/ghc-pkg/Main.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ghc/utils/ghc-pkg/Main.hs b/ghc/utils/ghc-pkg/Main.hs index e576c9c..04170c4 100644 --- a/ghc/utils/ghc-pkg/Main.hs +++ b/ghc/utils/ghc-pkg/Main.hs @@ -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 -- 1.7.10.4