Something I've defined and used many times that feels like it should be provided by the module.
This is a commonly available function in similar modules, for example:
Data.IORef.modifyIORef
Data.STRef.modifySTRef
Data.Vector.Mutable.modify