Skip to content

Add strict version of modifySTRef

We added strict versions of modifyIORef and atomicModifyIORef recently (see #5926 (closed)), and STM has modifyTVar' since stm-2.3.

This patch adds modifySTRef', mostly copy-pasted from modifyIORef'. My ghc currently doesn't build, so I wasn't able to test it.

Trac metadata
Trac field Value
Version 7.4.2
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component libraries/base
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information