[Haskell-cafe] Strictness in do block

Twan van Laarhoven twanvl at gmail.com
Wed Jul 5 07:26:15 EDT 2006

> I can always stumble upon things that work, but I'm never sure if I've
> got 'em right.  So, what is the idiomatic way to do this?

I think something like
 > evaluate (rnf myString)

Evaluate is an action that forces the value to be evaluated. rnf (from 
Control.Parallel.Strategies) is 'reduce to normal form', i.e. deepSeq.


More information about the Haskell-Cafe mailing list