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

The same as putStr, but adds a newline character. This operation may fail with the same errors, and has the same issues with concurrency, as hPutStr!