hGetChar function takes a handle and read character from it. You may get isEOFError if the end of file has been reached.Prelude System.IO> :t hGetChar hGetChar :: Handle -> IO Char… Read More
hLookAhead funciton takes a file handle returns the next character from the handle. It will not remove the charcater from input buffer, so you will always get the same character until… Read More