-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Encode unicode strings to ascii forms according to RFC 3492 -- -- Encode unicode strings to ascii forms according to RFC 3492. It is -- written in pure Haskell, as opposed to gnuidn's Data.Text.IDN.Punycode @package punycode @version 0.5.1 module Data.Text.Punycode -- | Encode a string into its ascii form encode :: String -> ByteString -- | Decode a string into its unicode form decode :: ByteString -> String -- | Convenience function for internationalized domain names. If there is -- at least one non-ascii character, this function will encode the input -- and prepend "xn--" to the output string. Otherwise, it will return the -- string untouched. Note that this function does not run nameprep (e.g. -- it operates on pre-prepped strings) internationalize :: String -> ByteString