
1 Feb
2008
1 Feb
'08
4:49 p.m.
On Feb 1, 2008 1:42 PM, Bryan O'Sullivan
No, it's the Haskell runtime turning a -1 return from read into an exception. You need to call hIsEOF to check whether you've hit EOF, then break out of the loop.
(assuming you meant 0, not -1) My bad, I thought that the Posix.IO stuff was a closer wrapping than that. It does, indeed, throw an exception on 0. How unfortunate. AGL -- Adam Langley agl@imperialviolet.org http://www.imperialviolet.org 650-283-9641