More interestingly, the problem goes away if I enable profiling. That's kind of worrisome.
Hi everyone!For some reason, this leaks thunks:module Main whereimport Control.Monadimport Control.Monad.MC -- from monte-carloimport Control.Monad.ST.Strictgo :: Int -> MCT (ST s) ()go k = replicateM_ k (return ())main = print $ runST $ evalMCT (go 100000000) rngwhererng = mt19937 0while this does not:module Main whereimport Control.Monadimport Control.Monad.MCgo :: Int -> MC ()go k = replicateM_ k (return ())main = print $ evalMC (go 100000000) rngwhererng = mt19937 0Can anyone help me figure out what's going on here?Thanks,- Clark