iri-0.3.4: RFC-based International Resource Identifier library

Safe HaskellNone
LanguageHaskell2010

Iri.Parsing.ByteString

Synopsis

Documentation

uri :: ByteString -> Either Text Iri Source #

Parser of a well-formed URI conforming to the RFC3986 standard into IRI. Performs URL- and Punycode-decoding.

httpUri :: ByteString -> Either Text HttpIri Source #

Same as uri, but optimized specifially for the case of HTTP URIs.

regName :: ByteString -> Either Text RegName Source #

Domain name parser.