putChar package:base

Write a character to the standard output device putChar is implemented as hPutChar stdout. This operation may fail with the same errors as hPutChar.

Examples

Note that the following do not put a newline.
>>> putChar 'x'
x
>>> putChar '\0042'
*
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. This operation may fail with: