tld-0.3.0.2: This project separates subdomains, domains, and top-level-domains from URLs.

Safe HaskellSafe
LanguageHaskell2010

Network.URI.TLD

Synopsis

Documentation

parseTLDURI :: URI -> Maybe (Text, Text, Text) Source #

Parse a URI, and separate the subdomain, domain, and TLD of a URI.

parseTLD :: String -> Maybe (Text, Text, Text) Source #

Parse a String URI, and separate the subdomain, domain, and TLD.

parseTLDText :: Text -> Maybe (Text, Text, Text) Source #

Parse a Text URI, and separate the subdomain, domain, and TLD.

separateTLD :: URI -> Maybe (Text, Text, Text) Source #

Deprecated: Use parseTLDURI instead.

separateTLD' :: Text -> Maybe (Text, Text, Text) Source #

Separate the subdomain, domain, and TLD of a Text string. You probably want to use parseTLDText.