[Haskell-cafe] problem with IO, strictness, and "let"

Felipe Almeida Lessa felipe.lessa at gmail.com
Fri Jul 13 20:27:33 EDT 2007


On 7/13/07, Michael Vanier <mvanier at cs.caltech.edu> wrote:
> What I meant by really-truly-absolutely-I-mean-right-now-seq is something that would evaluate its
> argument as far as it is possible to do so i.e. something that forces strict evaluation of an
> argument.

What you want is to reduce something to normal form. We have the rnf
function (from the NFData class) on Control.Parallel.Strategies for
this purpose, see

http://www.haskell.org/ghc/docs/latest/html/libraries/base/Control-Parallel-Strategies.html#v%3Arnf

and the must-read (IMHO) paper on

http://www.macs.hw.ac.uk/~dsg/gph/papers/abstracts/strategies.html


HTH,

-- 
Felipe.


More information about the Haskell-Cafe mailing list