| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Data.Text.Punycode
Synopsis
- encode :: Text -> ByteString
- data PunycodeDecodeException
- decode :: ByteString -> Either PunycodeDecodeException Text
Documentation
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 (/=) :: PunycodeDecodeException -> PunycodeDecodeException -> Bool | |
| Show PunycodeDecodeException Source # | |
Defined in Data.Text.Punycode.Decode Methods showsPrec :: Int -> PunycodeDecodeException -> ShowS show :: PunycodeDecodeException -> String showList :: [PunycodeDecodeException] -> ShowS | |
| Exception PunycodeDecodeException Source # | |
Defined in Data.Text.Punycode.Decode Methods toException :: PunycodeDecodeException -> SomeException fromException :: SomeException -> Maybe PunycodeDecodeException displayException :: PunycodeDecodeException -> String | |
decode :: ByteString -> Either PunycodeDecodeException Text Source #
Decode a string into its unicode form