Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Iri.Parsing.Text
Synopsis
- iri :: Text -> Either Text Iri
- httpIri :: Text -> Either Text HttpIri
- hierarchy :: Text -> Either Text Hierarchy
- scheme :: Text -> Either Text Scheme
- host :: Text -> Either Text Host
- regName :: Text -> Either Text RegName
- domainLabel :: Text -> Either Text DomainLabel
- port :: Text -> Either Text Word16
- path :: Text -> Either Text Path
- pathSegment :: Text -> Either Text PathSegment
- query :: Text -> Either Text Query
- fragment :: Text -> Either Text Fragment
Documentation
iri :: Text -> Either Text Iri Source #
Parser of a well-formed IRI conforming to the RFC3987 standard into Iri
.
Performs URL-decoding.
httpIri :: Text -> Either Text HttpIri Source #
Same as iri
, but optimized specifially for the case of HTTP IRIs.
domainLabel :: Text -> Either Text DomainLabel Source #
pathSegment :: Text -> Either Text PathSegment Source #