[Haskell-beginners] Memory usage problem

Henk-Jan van Tuyl hjgtuyl at chello.nl
Mon Mar 22 16:49:33 EDT 2010


On Mon, 22 Mar 2010 20:58:29 +0100, Sami Liedes <sliedes at cc.hut.fi> wrote:

> It seems seq doesn't force the entire computation to finish, only the
> next level. Is there some way to force the entire computation subtree
> to finish? That way I could say just seq' b (if seq' was the function
> that does that).
>

You can use Control.Parallel.Strategies.rnf (Reduce to Normal Form) for  
that.

Met vriendelijke groet,
Henk-Jan van Tuyl


--
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
--


More information about the Beginners mailing list