Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Translate between binary data and a human-readable collection of words.
- toText :: ByteString -> Text
- fromText :: Text -> Either TranslationError ByteString
- data TranslationError
Documentation
toText :: ByteString -> Text Source
Inverse of fromText
, modulo whitespace count.
fromText :: Text -> Either TranslationError ByteString Source
Convert a text of whitespace-separated words to their binary
representation. The whitespace splitting behaviour is given by words
.