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 Source #

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

Show Flags Source # 
Instance details

Defined in Data.Text.IDN.IDNA

data Error Source #

Instances
Eq Error Source # 
Instance details

Defined in Data.Text.IDN.Internal

Methods

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

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

Show Error Source # 
Instance details

Defined in Data.Text.IDN.Internal

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.