Extra-1.30: A grab bag of modules.Source codeContentsIndex
Extra.URI
Description
Make URI an instance of Read and Ord, and add functions to manipulate the uriQuery.
Synopsis
module Network.URI
relURI :: FilePath -> [(String, String)] -> URI
setURIPort :: String -> URI -> URI
parseURIQuery :: URI -> [(String, String)]
modifyURIQuery :: ([(String, String)] -> [(String, String)]) -> URI -> URI
setURIQuery :: [(String, String)] -> URI -> URI
setURIQueryAttr :: String -> String -> URI -> URI
deleteURIQueryAttr :: String -> URI -> URI
Documentation
module Network.URI
relURI :: FilePath -> [(String, String)] -> URISource
Create a relative URI with the given query.
setURIPort :: String -> URI -> URISource
parseURIQuery :: URI -> [(String, String)]Source

Set the port number in the URI authority, creating it if necessary.

Return the pairs in a URI's query

modifyURIQuery :: ([(String, String)] -> [(String, String)]) -> URI -> URISource
Modify a URI's query by applying a function to the pairs
setURIQuery :: [(String, String)] -> URI -> URISource
setURIQueryAttr :: String -> String -> URI -> URISource
deleteURIQueryAttr :: String -> URI -> URISource
Produced by Haddock version 2.6.0