Thank you Adam and Bradley. My program is my getting a feel of how to open a
Linux and do "block" reads. Just conceptual

Vasili


On 2/1/08, Adam Langley <[EMAIL PROTECTED]> wrote:
>
> On Feb 1, 2008 1:42 PM, Bryan O'Sullivan <[EMAIL PROTECTED]> wrote:
> > 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                                      [EMAIL PROTECTED]
> http://www.imperialviolet.org                       650-283-9641
>
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to