Safe Haskell | None |
---|---|
Language | Haskell98 |
Data.Text.IDN.IDNA
- data Flags = Flags {}
- data Error
- defaultFlags :: Flags
- toASCII :: Flags -> Text -> Either Error ByteString
- toUnicode :: Flags -> ByteString -> Text
Documentation
Constructors
Flags | |
Fields
|
defaultFlags :: Flags #
defaultFlags = Flags True False
toUnicode :: Flags -> ByteString -> Text #
Convert a possibly ACE-encoded domain name to Unicode. The domain name may contain several labels, separated by dots.
Aside from memory allocation failure, toUnicode
always succeeds.
If the input cannot be decoded, it is returned unchanged.