hPutStr package:base-prelude

Computation hPutStr hdl s writes the string s to the file or channel managed by hdl. This operation may fail with:
The same as hPutStr, but adds a newline character.