On Fri, Jun 13, 2003 at 10:34:53AM -0400, Dean Herington wrote:
> 
> `seq` guarantees only enough evaluation to determine whether its first
> argument is bottom.  That's why your commented code reads only the first
> character.  You need to evaluate the entire string.  As someone else
> suggested, `deepSeq` is one way to do this.  I've appended the current
> version of my DeepSeq module to this reply.

One can also use Strategies module that comes with GHC (in package
concurrent), for example:

    y `demanding` rnf x

will Reduce x to Normal Form, before evaluating y. I hope I got this
right :)

Best regards,
Tom

-- 
.signature: Too many levels of symbolic links
_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to