putStr is:exact package:base set:included-with-ghc

Write a string to the standard output device putStr is implemented as hPutStr stdout. This operation may fail with the same errors, and has the same issues with concurrency, as hPutStr!

Examples

Note that the following do not put a newline.
>>> putStr "Hello, World!"
Hello, World!
>>> putStr "\0052\0042\0050"
4*2