summaryrefslogtreecommitdiff
path: root/libraries/base/GHC/IO/Handle.hs
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2011-04-05 09:57:22 +0100
committerSimon Marlow <marlowsd@gmail.com>2011-05-24 13:23:16 +0100
commit1559fb3b888947c34edd95fec6aa55884bb10b51 (patch)
treec296c6d7323588e46c4334fd44b278ffa5b32999 /libraries/base/GHC/IO/Handle.hs
parenta21710bf52af581d60a754636d3ccdac591639a2 (diff)
downloadhaskell-1559fb3b888947c34edd95fec6aa55884bb10b51.tar.gz
Add System.IO.char8, the encoding used by openBinaryFile,
and correct the documentation for hSetBinaryMode which claimed that it was using the latin1 encoding when in fact it was using an unchecked modulo-256 version of it.
Diffstat (limited to 'libraries/base/GHC/IO/Handle.hs')
-rw-r--r--libraries/base/GHC/IO/Handle.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/GHC/IO/Handle.hs b/libraries/base/GHC/IO/Handle.hs
index f42fd55c04..fcfa92d080 100644
--- a/libraries/base/GHC/IO/Handle.hs
+++ b/libraries/base/GHC/IO/Handle.hs
@@ -551,7 +551,7 @@ hIsTerminalDevice handle = do
-- | Select binary mode ('True') or text mode ('False') on a open handle.
-- (See also 'openBinaryFile'.)
--
--- This has the same effect as calling 'hSetEncoding' with 'latin1', together
+-- This has the same effect as calling 'hSetEncoding' with 'char8', together
-- with 'hSetNewlineMode' with 'noNewlineTranslation'.
--
hSetBinaryMode :: Handle -> Bool -> IO ()