[Haskell-cafe] help diagnosing space leak with IORef/STRef, just incrementing a million times.
tomberek at gmail.com
Mon Jan 7 07:56:12 CET 2013
I have had issues like this with modifySTRef before. Try to make a strict
If memory serves, something like this worked for me.
modifySTRef' r f =
a <- readSTRef r
writeSTRef r $! f a
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe