[Haskell-cafe] reading from the cdrom drive on Red Hat

Bryan O'Sullivan bos at serpentine.com
Fri Feb 1 16:42:08 EST 2008

Adam Langley wrote:

> The error you are seeing comes from the operating system.

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.


More information about the Haskell-Cafe mailing list