getChar package:base-prelude

Read a character from the standard input device (same as hGetChar stdin).
Computation hGetChar hdl reads a character from the file or channel managed by hdl, blocking until a character is available. This operation may fail with: