appendFile package:streaming-bytestring

Append a ByteStream to a file. Use runResourceT to ensure that the handle is closed.
>>> runResourceT $ Q.writeFile "hello.txt" "Hello world.\nGoodbye world.\n"

>>> runResourceT $ Q.stdout $ Q.readFile "hello.txt"
Hello world.
Goodbye world.

>>> runResourceT $ Q.appendFile "hello.txt" "sincerely yours,\nArthur\n"

>>> runResourceT $ Q.stdout $  Q.readFile "hello.txt"
Hello world.
Goodbye world.
sincerely yours,
Arthur