summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamar Christina <tamar@zhox.com>2020-06-24 00:30:21 +0100
committerBen Gamari <ben@smart-cactus.org>2020-07-15 16:41:04 -0400
commit3bd415721672da9aa88c4528df8ba15bc616f3be (patch)
tree5684228c53d3ec0b16a557d99fe0fee0ade4db89
parent67afb03c45cf8a8dc9e51413cf187f36768a5a0b (diff)
downloadhaskell-3bd415721672da9aa88c4528df8ba15bc616f3be.tar.gz
winio: clarify comment on cooked mode.
-rw-r--r--libraries/base/GHC/IO/Handle.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/libraries/base/GHC/IO/Handle.hs b/libraries/base/GHC/IO/Handle.hs
index 2d33af92e2..f62acc1510 100644
--- a/libraries/base/GHC/IO/Handle.hs
+++ b/libraries/base/GHC/IO/Handle.hs
@@ -237,7 +237,8 @@ hSetBuffering handle mode =
case mode of
#if !defined(mingw32_HOST_OS)
-- 'raw' mode under win32 is a bit too specialised (and troublesome
- -- for most common uses), so simply disable its use here.
+ -- for most common uses), so simply disable its use here when not using
+ -- WinIO.
NoBuffering -> IODevice.setRaw haDevice True
#else
NoBuffering -> return () <!> IODevice.setRaw haDevice True