utf8-prelude-0.1.5: Variants of Prelude and System.IO with UTF8 text I/O operations
System.UTF8IO defines the same entities as System.IO but with UTF8 text I/O operations.
System.UTF8IO re-exports System.IO.UTF8 (utf8-string package) and System.IO but hides the duplicate definitions (in favor of 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 as efficient as it could be.
getChar :: IO CharSource
Read a character from the standard input device
(same as hGetChar stdin).
Note: The implementation of getChar is not as efficient as it could be.
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 as efficient as it could be.
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 as efficient as it could be.
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.
interact :: (String -> String) -> IO ()Source
UTF8 variant of interact.
Produced by Haddock version 2.8.1