Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
Exception PunycodeDecodeException Source # | |
Defined in Data.Text.Punycode.Decode | |
Show PunycodeDecodeException Source # | |
Defined in Data.Text.Punycode.Decode Methods showsPrec :: Int -> PunycodeDecodeException -> ShowS # show :: PunycodeDecodeException -> String # showList :: [PunycodeDecodeException] -> ShowS # | |
Eq PunycodeDecodeException Source # | |
Defined in Data.Text.Punycode.Decode Methods (==) :: PunycodeDecodeException -> PunycodeDecodeException -> Bool # (/=) :: PunycodeDecodeException -> PunycodeDecodeException -> Bool # |
decode :: ByteString -> Either PunycodeDecodeException Text Source #
Decode a string into its unicode form