On 27/08/13 20:37, Patrick Palka wrote: > You can use ContT to force the function to use heap instead of stack > space, e.g. runContT (replicateM 1000000 (lift randomIO)) return That is interesting, and works. Unfortunately its pure existence will not fix sequence, mapM etc. in base.