conduit icon indicating copy to clipboard operation
conduit copied to clipboard

`sinkAppendFile` usefule?

Open angerman opened this issue 6 years ago • 1 comments

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?

angerman avatar Dec 18 '17 06:12 angerman