conduit
conduit copied to clipboard
`sinkAppendFile` usefule?
While experimenting with conduit, I found sinkFile
, but had more use for an actual singAppendFile
. Would a PR with that make sense?
sinkAppendFile :: MonadResource m
=> FilePath
-> Consumer ByteString m ()
sinkAppendFile fp = sinkIOHandle (IO.openBinaryFile fp IO.AppendMode)
Another thing I noticed was that while I emitted bytestrings ending in a newline, somehow the first line in my output file ended up being blank. Has anyone else observed this?