docs: note that hGetBufNonBlocking isn't non-blocking on Windows
authorSimon Marlow <marlowsd@gmail.com>
Tue, 15 Jun 2010 11:25:47 +0000 (11:25 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 15 Jun 2010 11:25:47 +0000 (11:25 +0000)
GHC/IO/Handle/Text.hs

index 23b9cdd..e74371e 100644 (file)
@@ -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