[Git][ghc/ghc][master] Fix haddocks for GHC.IORef

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Fri Nov 4 03:07:46 UTC 2022



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
634da448 by Bodigrim at 2022-11-03T21:25:02+00:00
Fix haddocks for GHC.IORef

- - - - -


1 changed file:

- libraries/base/GHC/IORef.hs


Changes:

=====================================
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,



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/634da448dd9296297eeb98f9552bc256b373a6f5

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/634da448dd9296297eeb98f9552bc256b373a6f5
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20221103/78048b14/attachment-0001.html>


More information about the ghc-commits mailing list