From: Ian Lynagh Date: Tue, 7 Aug 2007 18:55:57 +0000 (+0000) Subject: Clarify the swapMVar haddock doc X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=be837bb5a17050a4adae79799fc5770663d6ed8e;p=ghc-base.git Clarify the swapMVar haddock doc --- diff --git a/Control/Concurrent/MVar.hs b/Control/Concurrent/MVar.hs index 7213cf1..fc3a30a 100644 --- a/Control/Concurrent/MVar.hs +++ b/Control/Concurrent/MVar.hs @@ -59,7 +59,7 @@ readMVar m = putMVar m a return a --- |Swap the contents of an 'MVar' for a new value. +-- |Atomically, put a new value into an 'MVar' and return the old value. swapMVar :: MVar a -> a -> IO a swapMVar mvar new = block $ do