summaryrefslogtreecommitdiff
path: root/libraries/base/GHC/IO/Handle/Text.hs
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2010-06-15 11:25:47 +0000
committerSimon Marlow <marlowsd@gmail.com>2010-06-15 11:25:47 +0000
commitf3bbb89c7817967953f501cc7a10cf1a0e350c62 (patch)
tree289921274c0b1e056f8c8c8578bda2965b14b242 /libraries/base/GHC/IO/Handle/Text.hs
parent7e991e1db052ffea8a1b83fc7ae4440cfa1fe484 (diff)
downloadhaskell-f3bbb89c7817967953f501cc7a10cf1a0e350c62.tar.gz
docs: note that hGetBufNonBlocking isn't non-blocking on Windows
Diffstat (limited to 'libraries/base/GHC/IO/Handle/Text.hs')
-rw-r--r--libraries/base/GHC/IO/Handle/Text.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/libraries/base/GHC/IO/Handle/Text.hs b/libraries/base/GHC/IO/Handle/Text.hs
index 23b9cddf67..e74371e7b1 100644
--- a/libraries/base/GHC/IO/Handle/Text.hs
+++ b/libraries/base/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