http-api-data-qq

Quasiquoter for building URLs with ToHttpApiData types

https://github.com/brandonchinn178/http-api-data-qq#readme

Version on this page:0.1.0.0@rev:2
LTS Haskell 22.39:0.1.0.0@rev:5
Stackage Nightly 2024-10-31:0.1.0.0@rev:5
Latest on Hackage:0.1.0.0@rev:5

See all snapshots http-api-data-qq appears in

BSD-3-Clause licensed
Maintained by Brandon Chinn
This version can be pinned in stack with:http-api-data-qq-0.1.0.0@sha256:16b4605a0a5e6e2c89176883c511cd92d51d3d5a93d3bf5080964dd06c97fc0d,1741

Module documentation for 0.1.0.0

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

Changes

Unreleased

0.1.0.0

  • Initial release