data URL = URL (Maybe Proto) (Maybe Host) (Maybe Port) FilePath (Maybe Fragment) instance Eq URL instance Ord URL instance Read URL instance Show URL type Proto = String type Host = String type Port = Int type Fragment = String url2str :: URL -> [Char] parseURL :: [Char] -> Maybe URL
URL
is the type for URLs (Universal Resource Locators).
The functions url2str
and parseURL
convert between strings
and the URL
type.