text-conversions alternatives and similar packages
Based on the "text" category.
Alternatively, view text-conversions alternatives based on common mentions on social networks and blogs.
-
text
Haskell library for space- and time-efficient operations over Unicode text. -
text-icu
This package provides the Haskell Data.Text.ICU library, for performing complex manipulation of Unicode text. -
text-short
Memory-efficient representation of Unicode text strings -
text-trie
An efficient finite map from Text to values, based on bytestring-trie. -
text-containers
Memory-efficient string-indexed container types. -
text-stream-decode
Streaming decoding functions for UTF encodings. -
text-binary
Binary instances for strict and lazy Text data types
Tired of breaking your main and manually rebasing outdated pull requests?
Do you think we are missing an alternative of text-conversions or a related project?
README
text-conversions 
This is a small library to ease the pain when converting between the many different string types in Haskell. Unlike some other libraries that attempt to solve the same problem, text-conversions is:
Safe. This library treats binary data (aka
ByteString
) like binary data, and it does not assume a particular encoding, nor does it ever throw exceptions when failing to decode. It does, however, provide failable conversions between binary data and textual data.Extensible. It’s easy to add or derive your own instances of the typeclasses to use your own types through the same interface.
Here’s an example of using text-conversions to convert between textual types:
> convertText ("hello" :: String) :: Text
"hello"
And here’s an example of converting from UTF-8 encoded binary data to a textual format:
> decodeConvertText (UTF8 ("hello" :: ByteString)) :: Maybe Text
Just "hello"
> decodeConvertText (UTF8 ("\xc3\x28" :: ByteString)) :: Maybe Text
Nothing