Eager IO function

Tom Bevan tom@regex.com.au
13 Feb 2002 12:09:51 +1100


How should I modify the function below so that characters are printed
out as they arrive?

Thanks.

Tom


printchar :: Handle -> IO ()
printchar handle = do   c <- hGetChar handle
                        putChar c