<br><br><div class="gmail_quote">On Thu, Mar 24, 2011 at 1:49 AM, Daniel Díaz <span dir="ltr">&lt;<a href="mailto:danieldiaz@asofilak.es">danieldiaz@asofilak.es</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi, cafe,<br>
<br>
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:<br>

<br>
hGetBufNonBlocking doesn&#39;t work on Windows: <a href="http://hackage.haskell.org/trac/ghc/ticket/806" target="_blank">http://hackage.haskell.org/trac/ghc/ticket/806</a><br>
<br>
This was a bad surprise.<br>
<br>
How can achieve my purpose without hGetBufNonBlocking?<br></blockquote><div><br></div><div>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 7.0.2.</div>
<div><br></div><div>Jason</div></div>