[Git][ghc/ghc][wip/ioref-swap-xchg] Update IORef.hs

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Tue May 9 04:32:23 UTC 2023



Ben Gamari pushed to branch wip/ioref-swap-xchg at Glasgow Haskell Compiler / GHC


Commits:
ec9c1e8b by Ben Gamari at 2023-05-09T04:32:22+00:00
Update IORef.hs
- - - - -


1 changed file:

- libraries/base/GHC/IORef.hs


Changes:

=====================================
libraries/base/GHC/IORef.hs
=====================================
@@ -127,7 +127,6 @@ atomicModifyIORef'_ ref f = do
 -- | Atomically replace the contents of an 'IORef', returning
 -- the old contents.
 atomicSwapIORef :: IORef a -> a -> IO a
-atomicSwapIORef (IORef (STRef ref)) new = IO $ \s ->
 atomicSwapIORef (IORef (STRef ref)) new = IO (atomicSwapMutVar# ref new)
 
 -- | A strict version of 'Data.IORef.atomicModifyIORef'.  This forces both the



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/ec9c1e8ba3e0f3d94b4caca5d72d7aca13f7aee4
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/20230509/9c8a441b/attachment.html>


More information about the ghc-commits mailing list