2 hSetBuffering stdout NoBuffering >>
3 putStr "Enter an integer: " >>
5 putStr "Enter another integer: " >>
7 putStr ("Their sum is " ++ show (read x1+ read x2) ++ "\n")
9 where readLine = isEOF >>= \ eof ->
11 else getChar >>= \ c ->
12 if c `elem` ['\n','\r'] then