uri :: QuasiQuoter
uri is a quasi quoter for staticURI.
>>> [uri|http://www.google.com/|]
http://www.google.com/>>> [uri|http://www.google.com/##|]
<interactive>...
... Invalid URI: http://www.google.com/##
...uri :: QuasiQuoteruri is a quasi quoter for staticURI.
>>> [uri|http://www.google.com/|]
http://www.google.com/>>> [uri|http://www.google.com/##|]
<interactive>...
... Invalid URI: http://www.google.com/##
...staticURI :: String -> SpliceQ URIstaticURI parses a specified string at compile time
and return an expression representing the URI when it's a valid URI.
Otherwise, it emits an error.
>>> $$(staticURI "http://www.google.com/")
http://www.google.com/>>> $$(staticURI "http://www.google.com/##")
<interactive>...
... Invalid URI: http://www.google.com/##
...URI
StringString representation of a URI
staticURI' :: String -> ExpQstaticURI' parses a specified string at compile time.
The typed template haskell staticURI is available only with GHC-7.8+.
StringString representation of a URI
ExpQURI
relativeReference :: QuasiQuoterrelativeReference is a quasi quoter for staticRelativeReference.
>>> [relativeReference|/foo?bar=baz#quux|]
/foo?bar=baz#quux>>> [relativeReference|http://www.google.com/|]
<interactive>...
... Invalid relative reference: http://www.google.com/
...staticRelativeReference :: String -> SpliceQ URIstaticRelativeReference parses a specified string at compile time and
return an expression representing the URI when it's a valid relative
reference. Otherwise, it emits an error.
>>> $$(staticRelativeReference "/foo?bar=baz#quux")
/foo?bar=baz#quux>>> $$(staticRelativeReference "http://www.google.com/")
<interactive>...
... Invalid relative reference: http://www.google.com/
...Refererence
StringString representation of a reference
staticRelativeReference' :: String -> ExpQstaticRelativeReference' parses a specified string at compile time and
return an expression representing the URI when it's a valid relative
reference. Otherwise, it emits an error.
The typed template haskell staticRelativeReference is available only with GHC-7.8+.
StringString representation of a reference
ExpQRefererence
Community contribution. The service has not verified this documentation.
Target: Linux on x86-64. Some inferred types and resolved links are not available.
Generator: aihc-haddock-858b1951-web-1
Metadata snapshot: 3762d3e18b488be7fc7f6d4216ef0e0c1ed732a5df99f474f70a8142b30f42bc
Open the dependency plan · Download the documentation model