HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Modulenetwork-uri-2.6.4.2Haskell98

Network.URI.Static

Contents
  1. Absolute URIs
  2. Relative URIs
Synopsis

Absolute URIs

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

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