reportStackOverflow now returns IO ()
authorIan Lynagh <igloo@earth.li>
Fri, 10 Jul 2009 15:32:57 +0000 (15:32 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 10 Jul 2009 15:32:57 +0000 (15:32 +0000)
It used to do "return undefined" to return IO a.

GHC/Conc.lhs

index d152815..cd501e1 100644 (file)
@@ -1269,8 +1269,8 @@ foreign import ccall unsafe "sizeof_fd_set"
 
 #endif
 
-reportStackOverflow :: IO a
-reportStackOverflow = do callStackOverflowHook; return undefined
+reportStackOverflow :: IO ()
+reportStackOverflow = callStackOverflowHook
 
 reportError :: SomeException -> IO ()
 reportError ex = do