diff options
author | Simon Marlow <marlowsd@gmail.com> | 2010-06-15 11:25:47 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2010-06-15 11:25:47 +0000 |
commit | f3bbb89c7817967953f501cc7a10cf1a0e350c62 (patch) | |
tree | 289921274c0b1e056f8c8c8578bda2965b14b242 /libraries/base/GHC/IO/Handle/Text.hs | |
parent | 7e991e1db052ffea8a1b83fc7ae4440cfa1fe484 (diff) | |
download | haskell-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.hs | 3 |
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 |