Fix some "warn-unused-do-bind" warnings where we want to ignore the value
[ghc-base.git] / Control / Concurrent.hs
index 2d9cf57..7ec65f2 100644 (file)
@@ -430,7 +430,7 @@ runInUnboundThread action = do
     if bound
         then do
             mv <- newEmptyMVar
-            forkIO (Exception.try action >>= putMVar mv)
+            _ <- forkIO (Exception.try action >>= putMVar mv)
             takeMVar mv >>= \ei -> case ei of
                 Left exception -> Exception.throw (exception :: SomeException)
                 Right result -> return result