[Haskell-cafe] Blocking problem reading a handle

Jason Dagit dagitj at gmail.com
Thu Mar 24 11:18:47 CET 2011

On Thu, Mar 24, 2011 at 1:49 AM, Daniel Díaz <danieldiaz at asofilak.es> wrote:

> Hi, cafe,
> all I want is to read the unread portion of a handle, without blocking
> waiting for an EOF or a newline. My first attempt was to try with
> hGetBufNonBlocking from System.IO, and other functions that use it in its
> definition (directly or indirectly). But, unfortunately:
> hGetBufNonBlocking doesn't work on Windows:
> http://hackage.haskell.org/trac/ghc/ticket/806
> This was a bad surprise.
> How can achieve my purpose without hGetBufNonBlocking?

That ticket mentions that this may be fixed in GHC 7.0.1 and newer.  What
version of ghc are you using?  The most recent haskell platform uses ghc

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110324/a136fd08/attachment.htm>

More information about the Haskell-Cafe mailing list