problems with working with Handles

Marcin 'Qrczak' Kowalczyk qrczak@knm.org.pl
Sun, 15 Jun 2003 22:10:54 +0200


Dnia pią 13. czerwca 2003 16:34, Dean Herington napisał:

> `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.

There is simpler: foldr seq (return ()) str

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak@knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/