HaskellNet-0.2.5: network related libraries such as POP3, SMTP, IMAP

Portabilityportable
Stabilitystable
Maintainermukai@jmuk.org

Text.URI

Description

URI parser and utilities

Synopsis

Documentation

data URI Source

Constructors

URI 

Instances

port' :: URI -> PortNumberSource

Obtain the port number for the URI. If no port number exists, port' would like to estimate the port number from the scheme name. If both failed, it raises an error.

uri' :: ByteString -> URISource

Parse URI string simiar to parseURI. The difference is that it raises an error for the case of parse failed, not returns Nothing.

parseURI :: String -> Maybe URISource

Parse URI string and returns the result. If the parse is failed, it simply returns Nothing.