¤ URL, Proto, et al

URL

Types

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

Description

URL is the type for URLs (Universal Resource Locators).

The functions url2str and parseURL convert between strings and the URL type.

See Also

Dealing with special characters in URLs: encode, decode et al.