Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
encode :: Text -> ByteString Source #
Encode a string into its ascii form
data PunycodeDecodeException Source #
GenericDecodeException | |
InternalStringTooShort | |
InputTooShort | |
RightOfHyphenShouldBeAlphanumeric | |
LeftOfHyphenShouldBeBasic | |
CantStartWithDash | |
InvalidCodePoint |
Instances
Exception PunycodeDecodeException Source # | |
Show PunycodeDecodeException Source # | |
Defined in Data.Text.Punycode.Decode showsPrec :: Int -> PunycodeDecodeException -> ShowS # show :: PunycodeDecodeException -> String # showList :: [PunycodeDecodeException] -> ShowS # | |
Eq PunycodeDecodeException Source # | |
Defined in Data.Text.Punycode.Decode |
decode :: ByteString -> Either PunycodeDecodeException Text Source #
Decode a string into its unicode form