unwords package:io-streams

Intersperses string chunks sent to the given OutputStream with spaces. See intersperse and unwords.
ghci> os <- Streams.unwords Streams.stdout
ghci> forM_ [Just "Hello,", Nothing, Just "world!\n"] $ w -> Streams.write w os
Hello, world!