From: Simon Marlow Date: Tue, 15 Jun 2010 11:25:47 +0000 (+0000) Subject: docs: note that hGetBufNonBlocking isn't non-blocking on Windows X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;ds=sidebyside;h=26821e09c7f50cb850e9682e013a3f0cb4238f1c;p=ghc-base.git docs: note that hGetBufNonBlocking isn't non-blocking on Windows --- 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