http-api-data-qq: Quasiquoter for building URLs with ToHttpApiData types

[ bsd3, library, web ] [ Propose Tags ]

Quasiquoter for building URLs with strings interpolated using ToHttpApiData instances


[Skip to Readme]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Change log CHANGELOG.md
Dependencies base (>=4.12 && <5), http-api-data (>=0.4.1.1 && <0.6), template-haskell (>=2.14 && <2.20), text (>=1.2.3.1 && <2.1) [details]
License BSD-3-Clause
Author
Maintainer Brandon Chinn <brandonchinn178@gmail.com>
Revised Revision 2 made by brandonchinn178 at 2022-11-19T21:57:58Z
Category Web
Home page https://github.com/brandonchinn178/http-api-data-qq#readme
Bug tracker https://github.com/brandonchinn178/http-api-data-qq/issues
Source repo head: git clone https://github.com/brandonchinn178/http-api-data-qq
Uploaded by brandonchinn178 at 2021-12-18T20:19:11Z
Distributions LTSHaskell:0.1.0.0, NixOS:0.1.0.0, Stackage:0.1.0.0
Downloads 141 total (18 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2021-12-18 [all 1 reports]

Readme for http-api-data-qq-0.1.0.0

[back to package description]

http-api-data-qq

CircleCI Hackage Codecov

Quasiquoter for building URLs with strings interpolated using ToHttpApiData instances.

{-# LANGUAGE QuasiQuotes #-}

import Network.HTTP.Client
import Web.HttpApiData.QQ (url)

userId :: Int
userId = 100

main :: IO ()
main = do
  manager <- newManager defaultManagerSettings
  request <- parseRequest [url|http://httpbin.org/anything/user/#{userId}|]
  response <- httpLbs request manager
  print response