A pure specification of getChar and putChar.
The IOTeletype monad
There is a minor caveat here. I assume that stdin and stdout are not buffered. This is not the standard behaviour in many Haskell compilers.
Pure getChar and putChar
getChar function can be used to read a character from the
getChar function can be used to print a character to the