FIX BUILD on Windows (fix for #2873 broke it)
authorSimon Marlow <marlowsd@gmail.com>
Fri, 9 Jan 2009 09:06:58 +0000 (09:06 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Fri, 9 Jan 2009 09:06:58 +0000 (09:06 +0000)
utils/ghc-pkg/Main.hs

index 2cbbc27..8afde04 100644 (file)
@@ -1151,6 +1151,9 @@ isInfixOf needle haystack = any (isPrefixOf needle) (tails haystack)
 #if mingw32_HOST_OS || mingw32_TARGET_OS
 throwIOIO :: Exception.IOException -> IO a
 throwIOIO = Exception.throwIO
+
+catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a
+catchIO = Exception.catch
 #endif
 
 catchError :: IO a -> (String -> IO a) -> IO a