Skip to content

Commit

Permalink
Use WriteMode in withSinkFile
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Mar 18, 2018
1 parent b53400d commit 87e4c64
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions conduit/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.3.0.2

* Replace `ReadMode` with `WriteMode` in `withSinkFile`

## 1.3.0.1

* Test suite compatibility with GHC 8.4.1 [#358](https://github.com/snoyberg/conduit/issues/358)
Expand Down
2 changes: 1 addition & 1 deletion conduit/conduit.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: conduit
Version: 1.3.0.1
Version: 1.3.0.2
Synopsis: Streaming data processing library.
description:
`conduit` is a solution to the streaming data problem, allowing for production,
Expand Down
2 changes: 1 addition & 1 deletion conduit/src/Data/Conduit/Combinators.hs
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ withSinkFile
-> m a
withSinkFile fp inner =
withRunInIO $ \run ->
IO.withBinaryFile fp IO.ReadMode $
IO.withBinaryFile fp IO.WriteMode $
run . inner . sinkHandle

-- | Same as 'withSinkFile', but lets you use a 'BB.Builder'.
Expand Down

0 comments on commit 87e4c64

Please sign in to comment.