getChar is:exact

Read a single character from the standard input device. getChar is implemented as hGetChar stdin. This operation may fail with the same errors as hGetChar.

Examples

>>> getChar
a'a'
>>> getChar
>
'\n'
Read a character from the standard input device (same as hGetChar stdin).
Read a character from stdin Uses system locale settings
Read one character from a file