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

Safe HaskellNone
LanguageHaskell2010

Network.URI.TLD

Synopsis

Documentation

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.