Binrep.Type.Text.Encoding.Utf8
data Utf8 Source #
Defined in Binrep.Type.Text.Encoding.Utf8
Methods
decode :: Bytes -> Either String (AsText Utf8) Source #
encode' :: Text -> Bytes Source #
Any Text value is always valid UTF-8.
Text
validate :: Proxy Utf8 -> Text -> Maybe RefineException #