A synonym for
hPut, for compatibility
hPutStr :: Handle -> ByteStream IO r -> IO r hPutStr = hPut
- - | Write a ByteStream to stdout putStr :: ByteStream IO r ->
IO r putStr = hPut IO.stdout
The interact function takes a function of type
ByteStream ->
ByteStream as its argument. The entire input from the standard
input device is passed to this function as its argument, and the
resulting string is output on the standard output device.
interact morph = stdout (morph stdin)