import Data.Maybe
import GHC.Base
-import GHC.IOBase
+import GHC.IOBase hiding ( Exception, BlockedOnDeadMVar, BlockedIndefinitely )
import GHC.Num ( Num(..) )
import GHC.Real ( fromIntegral, div )
#ifndef mingw32_HOST_OS
import GHC.STRef
import GHC.Show ( Show(..), showString )
import Data.Typeable
+import Control.OldException hiding (throwTo)
infixr 0 `par`, `pseq`
\end{code}
a pending 'throwTo'. This is arguably undesirable behaviour.
-}
+-- XXX This is duplicated in Control.{Old,}Exception
throwTo :: ThreadId -> Exception -> IO ()
throwTo (ThreadId id) ex = IO $ \ s ->
case (killThread# id ex s) of s1 -> (# s1, () #)