utf8-prelude-0.1.3: Prelude and System.IO with UTF8 text I/OSource codeContentsIndex
System.UTF8IO
Portabilityportable
Stabilityalpha
Maintainerdivip@aszt.inf.elte.hu
Contents
Functions not defined in System.IO.UTF8
Description

System.UTF8IO defines the same entities as System.IO but with UTF8 text I/O operations.

System.UTF8IO re-exports System.IO.UTF8 and System.IO but hides the duplicate definitions (in favor of System.IO.UTF8).

Synopsis
putChar :: Char -> IO ()
getChar :: IO Char
hPutChar :: Handle -> Char -> IO ()
hGetChar :: Handle -> IO Char
hLookAhead :: Handle -> IO Char
hPrint :: Show a => Handle -> a -> IO ()
Functions not defined in System.IO.UTF8
putChar :: Char -> IO ()Source

Write a character to the standard output device (same as hPutChar stdout).

Note: The implementation of putChar is not efficient.

getChar :: IO CharSource

Read a character from the standard input device (same as hGetChar stdin).

Note: The implementation of getChar is not efficient.

hPutChar :: Handle -> Char -> IO ()Source

Computation hPutChar hdl ch writes the character ch to the file or channel managed by hdl. Characters may be buffered if buffering is enabled for hdl.

Note: The implementation of hPutChar is not efficient.

hGetChar :: Handle -> IO CharSource

Computation hGetChar hdl reads a character from the file or channel managed by hdl, blocking until a character is available.

Note: The implementation of hGetChar is not efficient.

hLookAhead :: Handle -> IO CharSource

Computation hLookAhead hdl returns the next character from the handle without removing it from the input buffer, blocking until a character is available.

Note: hLookAhead is not implemented; it halts with a run-time error.

hPrint :: Show a => Handle -> a -> IO ()Source

Computation hPrint hdl t writes the UTF8 string representation of t to the file or channel managed by hdl and appends a newline (same as hPutStrLn hdl . show t).

Note: hPrint has the same behaviour as System.IO.hPrint because show always produces an ASCII string.

Produced by Haddock version 2.3.0