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