help diagnosing space leak with IORef/STRef, just incrementing a million times.

7 Jan
2013
7 Jan
'13
1:56 a.m.
I have had issues like this with modifySTRef before. Try to make a strict version modifySTRef' If memory serves, something like this worked for me. modifySTRef' r f = do a <- readSTRef r writeSTRef r $! f a
4517
Age (days ago)
4517
Last active (days ago)
0 comments
1 participants
participants (1)
-
Thomas Bereknyei