Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialise Texts without going through ByteString #617

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

alexbiehl
Copy link
Member

@alexbiehl alexbiehl commented Oct 15, 2024

It has never been easier. Ever since text is using UTF-8 encoding internally we don't have to go through the intermediate ByteString step. However, we keep deserialisation as is to ensure proper UTF-8'ness.

@Bodigrim
Copy link
Contributor

@alexbiehl shall we do the same for lazy Text?

@alexbiehl alexbiehl force-pushed the alex/put-without-bytestring branch 2 times, most recently from 128e8fc to a6d3dc2 Compare October 16, 2024 12:55
@alexbiehl
Copy link
Member Author

@Bodigrim I updated the PR.

@alexbiehl
Copy link
Member Author

I also added property tests for strict and lazy texts.

@alexbiehl alexbiehl force-pushed the alex/put-without-bytestring branch 2 times, most recently from 8d18425 to 7263ebf Compare October 17, 2024 06:18
@Bodigrim Bodigrim merged commit a3f398e into haskell:master Oct 18, 2024
23 of 25 checks passed
@Bodigrim
Copy link
Contributor

Thanks!

@alexbiehl alexbiehl deleted the alex/put-without-bytestring branch October 18, 2024 07:07
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.

3 participants