We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Would any of the following definitions be worth adding to Data.Text.Encoding?
decodeUtf8Either :: ByteString -> Either UnicodeException Text decodeUtf8Either = decodeUtf8'
decodeUtf8Maybe :: ByteString -> Maybe Text decodeUtf8Maybe = either (const Nothing) Just . decodeUtf8'
decodeUtf8Lenient :: ByteString -> Text decodeUtf8Lenient = decodeUtf8With lenientDecode
These are simple enough to define ad hoc, but I thought I'd ask anyway, to save myself from having to do so 🙂.
The text was updated successfully, but these errors were encountered:
Virtually all my project specific preludes introduce decodeUtf8Lenient, so 👍 from me.
decodeUtf8Lenient
Sorry, something went wrong.
Cool, I'll get a pull request together.
No branches or pull requests
Would any of the following definitions be worth adding to Data.Text.Encoding?
These are simple enough to define ad hoc, but I thought I'd ask anyway, to save myself from having to do so 🙂.
The text was updated successfully, but these errors were encountered: