Extra-1.46.1: A grab bag of modules.

Safe HaskellNone

Extra.URI

Description

Make URI an instance of Read and Ord, and add functions to manipulate the uriQuery.

Synopsis

Documentation

relURI :: FilePath -> [(String, String)] -> URISource

Create a relative URI with the given query.

setURIPort :: [Char] -> URI -> URISource

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

parseURIQuery :: URI -> [(String, String)]Source

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