projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7434e64
)
Clarify the swapMVar haddock doc
author
Ian Lynagh
<igloo@earth.li>
Tue, 7 Aug 2007 18:55:57 +0000
(18:55 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Tue, 7 Aug 2007 18:55:57 +0000
(18:55 +0000)
Control/Concurrent/MVar.hs
patch
|
blob
|
history
diff --git
a/Control/Concurrent/MVar.hs
b/Control/Concurrent/MVar.hs
index
7213cf1
..
fc3a30a
100644
(file)
--- 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