[Haskell-cafe] lazy evaluation is not complete

Bulat Ziganshin bulat.ziganshin at gmail.com
Mon Feb 9 09:23:58 EST 2009

Hello Peter,

Monday, February 9, 2009, 5:10:22 PM, you wrote:

> If run with ghci, foo 5 does not terminate, i.e., Haskell does not look
> for all outermost redices in parallel. Why? For efficiency reasons?

of course. if you will create new thread for every cpu instruction
executed, you will definitely never compute anything :D

you need to use `par`

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list