-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | URI template library for Haskell
--
-- A URI template expansion library for Haskell. Provides support for Joe
-- Gregorio's standardized format, OpenSearch 1.1's format +
-- WADL/WSDL-style templates.
@package uri-template
@version 0.2
-- | URI templates and their expansion. For details (and up-to-date specs),
-- see http:bitworking.orgprojects
--
-- Also implements the OpenSearch 1.1 style with ? suffix chars
-- + support for namespace prefixes {xmlns:foo?} => xmlns:bar
module Network.URI.Template
-- | TemplateEnv holds the key,value mapping for the expansion
-- context for a URI template.
data TemplateEnv
-- | Construct a new, empty TemplateEnv.
newEnv :: TemplateEnv
-- | addToEnv key value env augments env with a new
-- key,value pair.
addToEnv :: String -> String -> TemplateEnv -> TemplateEnv
-- | addListToEnv key vals env expands the template environment
-- env with a list-valued key,value(s) pair.
addListToEnv :: String -> [String] -> TemplateEnv -> TemplateEnv
type URITemplate = String
type URIString = String
-- | expand tenv tpl performs template expansion on URL template
-- tpl wrt tenv. The result contains the expansion,
-- _but_ leaving unbound template variables intact.
expand :: TemplateEnv -> URITemplate -> URIString