diff options
author | Bodigrim <andrew.lelechenko@gmail.com> | 2022-10-26 22:47:09 +0100 |
---|---|---|
committer | Bodigrim <andrew.lelechenko@gmail.com> | 2022-11-03 21:25:02 +0000 |
commit | 634da448dd9296297eeb98f9552bc256b373a6f5 (patch) | |
tree | ef028286151f8ba35f0e03f4fb39cba3ca836733 | |
parent | a9fc15b1228d557c2241a28ac702d4a6e140d975 (diff) | |
download | haskell-634da448dd9296297eeb98f9552bc256b373a6f5.tar.gz |
Fix haddocks for GHC.IORef
-rw-r--r-- | libraries/base/GHC/IORef.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/base/GHC/IORef.hs b/libraries/base/GHC/IORef.hs index db932fca90..601c0c5a90 100644 --- a/libraries/base/GHC/IORef.hs +++ b/libraries/base/GHC/IORef.hs @@ -51,7 +51,7 @@ readIORef (IORef var) = stToIO (readSTRef var) writeIORef :: IORef a -> a -> IO () writeIORef (IORef var) v = stToIO (writeSTRef var v) --- Atomically apply a function to the contents of an 'IORef', +-- | Atomically apply a function to the contents of an 'IORef', -- installing its first component in the 'IORef' and returning -- the old contents and the result of applying the function. -- The result of the function application (the pair) is not forced. @@ -62,7 +62,7 @@ atomicModifyIORef2Lazy (IORef (STRef r#)) f = IO (\s -> case atomicModifyMutVar2# r# f s of (# s', old, res #) -> (# s', (old, res) #)) --- Atomically apply a function to the contents of an 'IORef', +-- | Atomically apply a function to the contents of an 'IORef', -- installing its first component in the 'IORef' and returning -- the old contents and the result of applying the function. -- The result of the function application (the pair) is forced, |