modern-uri-0.3.6.1: Modern library for working with URIs

Copyright | © 2017–present Mark Karpov
License | BSD 3 clause
Maintainer | Mark Karpov <markkarpov92@gmail.com>
Stability | experimental
Portability | portable
Safe Haskell | None
Language | Haskell2010

Text.URI.QQ

Description

Quasi-quoters for compile-time construction of URIs and refined text values.

All of the quasi-quoters in this module can be used in an expression context. With the `ViewPatterns` language extension enabled, they may also be used in a pattern context (since 0.3.2.0).

Synopsis

- uri :: QuasiQuoter
- scheme :: QuasiQuoter
- host :: QuasiQuoter
- username :: QuasiQuoter
- password :: QuasiQuoter
- pathPiece :: QuasiQuoter
- queryKey :: QuasiQuoter
- queryValue :: QuasiQuoter
- fragment :: QuasiQuoter

# Documentation

uri :: QuasiQuoter Source #

Construct a `URI` value at compile time.

scheme :: QuasiQuoter Source #

Construct a ``RText` `Scheme`` value at compile time.

host :: QuasiQuoter Source #

Construct a ``RText` `Host`` value at compile time.

username :: QuasiQuoter Source #

Construct a ``RText` `Username`` value at compile time.

password :: QuasiQuoter Source #

Construct a ``RText` `Password`` value at compile time.

pathPiece :: QuasiQuoter Source #

Construct a ``RText` `PathPiece`` value at compile time.

queryKey :: QuasiQuoter Source #

Construct a ``RText` `QueryKey`` value at compile time.

queryValue :: QuasiQuoter Source #

Construct a `'RText `QueryValue`` value at compile time.

fragment :: QuasiQuoter Source #

Construct a ``RText` `Fragment`` value at compile time.