As a wrapper around the standard function
hPutBuf, this
function takes a standard Haskell
String instead of the far
less convenient
Ptr a. The entire contents of the string will
be written as a binary buffer using
hPutBuf. The length of
the output will be the length of the passed String or list.
If it helps, you can thing of this function as being of type
Handle -> String -> IO ()