sequence causing stack overflow on pretty small lists

Niklas Hambüchen mail at nh2.me
Tue Aug 27 15:07:49 CEST 2013


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.




More information about the Libraries mailing list