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

Convert to Text #6

Open
darrint opened this issue Jan 24, 2012 · 2 comments
Open

Convert to Text #6

darrint opened this issue Jan 24, 2012 · 2 comments

Comments

@darrint
Copy link

darrint commented Jan 24, 2012

According to this page, compactstring is obsolete.

http://hackage.haskell.org/package/compact-string

The advice given there is to switch to text. The text library is heavily optimized and part of the standard Haskell platform now. Is converting a reasonable change or is there a compelling reason to stay with compactstring?

@TonyGen
Copy link
Owner

TonyGen commented Jan 24, 2012

I decided against text because its native format is UTF-16 instead of UTF-8 which is the native format for BSON and compact-string. compact-string requires no conversion when serializing BSON.

@darrint
Copy link
Author

darrint commented Jan 24, 2012

On Mon, Jan 23, 2012 at 11:16 PM, Tony Hannan <
[email protected]

wrote:

I decided against text because its native format is UTF-16 instead of
UTF-8 which is the native format for BSON and compact-string.
compact-string requires no conversion when serializing BSON.

I suggest making a note of this in the package description.

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

No branches or pull requests

2 participants