Windows fixes
authorIan Lynagh <igloo@earth.li>
Sun, 3 Aug 2008 18:03:45 +0000 (18:03 +0000)
committerIan Lynagh <igloo@earth.li>
Sun, 3 Aug 2008 18:03:45 +0000 (18:03 +0000)
Control/Concurrent.hs
GHC/TopHandler.lhs

index 6268311..38a08d2 100644 (file)
@@ -470,7 +470,7 @@ withThread io = do
   x <- takeMVar m
   case x of
     Right a -> return a
-    Left e  -> throwIO e
+    Left e  -> throwIO (e :: IOException)
 
 waitFd :: Fd -> CInt -> IO ()
 waitFd fd write = do
index 98ce59b..422b8b0 100644 (file)
@@ -38,6 +38,9 @@ import GHC.Handle
 import GHC.IOBase
 import GHC.Weak
 import Data.Typeable
+#if defined(mingw32_HOST_OS)
+import GHC.ConsoleHandler
+#endif
 
 -- | 'runMainIO' is wrapped around 'Main.main' (or whatever main is
 -- called in the program).  It catches otherwise uncaught exceptions,