tld-0.1.0.1: This project separates subdomains, domains, and top-level-domains from URLs.
Network.URI.TLD
Synopsis
parseTLD :: String -> Maybe (Text, Text, Text) Source
Parse a URI, and separate the subdomain, domain, and TLD.
separateTLD :: URI -> Maybe (Text, Text, Text) Source
Separate the subdomain, domain, and TLD of a URI.
separateTLD' :: Text -> Maybe (Text, Text, Text) Source
Separate the subdomain, domain, and TLD of a Text string.
Text