From 26821e09c7f50cb850e9682e013a3f0cb4238f1c Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Tue, 15 Jun 2010 11:25:47 +0000 Subject: [PATCH] docs: note that hGetBufNonBlocking isn't non-blocking on Windows --- GHC/IO/Handle/Text.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GHC/IO/Handle/Text.hs b/GHC/IO/Handle/Text.hs index 23b9cdd..e74371e 100644 --- a/GHC/IO/Handle/Text.hs +++ b/GHC/IO/Handle/Text.hs @@ -931,6 +931,9 @@ haFD h_@Handle__{..} = -- -- 'hGetBufNonBlocking' ignores the prevailing 'TextEncoding' and -- 'NewlineMode' on the 'Handle', and reads bytes directly. +-- +-- NOTE: on Windows, this function does not work correctly; it +-- behaves identically to 'hGetBuf'. hGetBufNonBlocking :: Handle -> Ptr a -> Int -> IO Int hGetBufNonBlocking h ptr count -- 1.7.10.4