problems with working with Handles

Tomasz Zielonka t.zielonka@students.mimuw.edu.pl
Fri, 13 Jun 2003 16:50:30 +0200


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