Extra-1.46.3: A grab bag of modules.

Safe HaskellNone
LanguageHaskell98

Extra.URI

Description

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

Synopsis

Documentation

relURI :: FilePath -> [(String, String)] -> URI Source

Create a relative URI with the given query.

setURIPort :: String -> URI -> URI Source

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 -> URI Source

Modify a URI's query by applying a function to the pairs