Safe Haskell | None |
---|---|
Language | Haskell98 |
Data.Text.Punycode
Documentation
encode :: Text -> ByteString Source #
Encode a string into its ascii form
data PunycodeDecodeException Source #
Constructors
GenericDecodeException | |
InternalStringTooShort | |
InputTooShort | |
RightOfHyphenShouldBeAlphanumeric | |
LeftOfHyphenShouldBeBasic | |
CantStartWithDash | |
InvalidCodePoint |
Instances
Eq PunycodeDecodeException Source # | |
Defined in Data.Text.Punycode.Decode Methods (==) :: PunycodeDecodeException -> PunycodeDecodeException -> Bool Source # (/=) :: PunycodeDecodeException -> PunycodeDecodeException -> Bool Source # | |
Show PunycodeDecodeException Source # | |
Defined in Data.Text.Punycode.Decode | |
Exception PunycodeDecodeException Source # | |
Defined in Data.Text.Punycode.Decode |
decode :: ByteString -> Either PunycodeDecodeException Text Source #
Decode a string into its unicode form