Skip to content

Conversation

@3kyro
Copy link
Contributor

@3kyro 3kyro commented Aug 3, 2021

#406
Some questions:

  • Should I replicate hPutBuilder tests? Seems like a repetition
  • Should I add readFile as well to better align the API? If yes I could add roundtrip tests similarly to the other modules

@3kyro 3kyro changed the title Add writeFile for Builder #406 Add writeFile for Builder Aug 3, 2021
@Bodigrim
Copy link
Contributor

Bodigrim commented Aug 3, 2021

I'm not sure how useful is to readFile into Builder in general.

You can test that Lazy.readFile . Builder.writeFile matches toLazyByteString.

@3kyro
Copy link
Contributor Author

3kyro commented Aug 4, 2021

I'm not sure how useful is to readFile into Builder in general.

You can test that Lazy.readFile . Builder.writeFile matches toLazyByteString.

Thanks @Bodigrim, I've added the relevant test

@Bodigrim Bodigrim requested a review from sjakobi August 5, 2021 18:29
Copy link
Member

@sjakobi sjakobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers!

@Bodigrim Bodigrim linked an issue Aug 5, 2021 that may be closed by this pull request
@Bodigrim Bodigrim added this to the 0.11.2.0 milestone Aug 5, 2021
@Bodigrim Bodigrim merged commit 1010c9e into haskell:master Aug 5, 2021
@Bodigrim
Copy link
Contributor

Bodigrim commented Aug 5, 2021

Thanks!

Bodigrim added a commit to Bodigrim/bytestring that referenced this pull request Aug 7, 2021
* Add writeFile for `Builder` haskell#406

* Clarify imports in documentation

Co-authored-by: Bodigrim <[email protected]>

* Add test for `writeFile`

* Evaluate read bytestring before closing file

Co-authored-by: Bodigrim <[email protected]>
noughtmare pushed a commit to noughtmare/bytestring that referenced this pull request Dec 12, 2021
* Add writeFile for `Builder` haskell#406

* Clarify imports in documentation

Co-authored-by: Bodigrim <[email protected]>

* Add test for `writeFile`

* Evaluate read bytestring before closing file

Co-authored-by: Bodigrim <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add writeFileBuilder

3 participants