You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The names seem wrong to me. toUTF8 seems like it ought to be fromUTF8, since it is converting from the UTF-8 encoding to a textual representation. Similarly, I think asUTF8 ought to be toUTF8.
That aside, I think these functions seem useful. I would be willing to merge them if you submitted a PR.
It'd be nice to have explicit functions for converting
ByteString
to and from UTF8, since that's the common use case.This is the code that I find very useful in my local library:
If this is something you're interested in, let me know, and I'm happy to submit a pull request.
The text was updated successfully, but these errors were encountered: