gnuidn-0.2.2: Bindings for GNU IDN

Safe HaskellNone
LanguageHaskell98

Data.Text.IDN.IDNA

Synopsis

Documentation

data Flags Source #

Constructors

Flags 

Fields

Instances
Eq Flags Source # 
Instance details

Defined in Data.Text.IDN.IDNA

Methods

(==) :: Flags -> Flags -> Bool #

(/=) :: Flags -> Flags -> Bool #

Show Flags Source # 
Instance details

Defined in Data.Text.IDN.IDNA

Methods

showsPrec :: Int -> Flags -> ShowS #

show :: Flags -> String #

showList :: [Flags] -> ShowS #

data Error Source #

Instances
Eq Error Source # 
Instance details

Defined in Data.Text.IDN.Internal

Methods

(==) :: Error -> Error -> Bool #

(/=) :: Error -> Error -> Bool #

Show Error Source # 
Instance details

Defined in Data.Text.IDN.Internal

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

defaultFlags :: Flags Source #

defaultFlags = Flags True False

toUnicode :: Flags -> ByteString -> Text Source #

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.