HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulenetwork-uri-2.6.4.2Haskell98

Network.URI.Static

  • 6 values

Absolute URIs

3 declarations
valueuri :: QuasiQuoter
#

uri is a quasi quoter for staticURI.

Example1 expression
[uri|http://www.google.com/|]http://www.google.com/
Example1 expression
[uri|http://www.google.com/##|]<interactive>...... Invalid URI: http://www.google.com/##...
valuestaticURI
  1. :: String

    String representation of a URI

  2. -> SpliceQ URI

    URI

#

staticURI 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.

Example1 expression
$$(staticURI "http://www.google.com/")http://www.google.com/
Example1 expression
$$(staticURI "http://www.google.com/##")<interactive>...... Invalid URI: http://www.google.com/##...

Relative URIs

3 declarations
valuestaticRelativeReference
  1. :: String

    String representation of a reference

  2. -> SpliceQ URI

    Refererence

#

staticRelativeReference 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.

Example1 expression
$$(staticRelativeReference "/foo?bar=baz#quux")/foo?bar=baz#quux
Example1 expression
$$(staticRelativeReference "http://www.google.com/")<interactive>...... Invalid relative reference: http://www.google.com/...