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:3
LTS Haskell 22.28:0.1.0.0@rev:5
Stackage Nightly 2024-07-13: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:8541d5a4a8c43d4952cd367130a41837a5b8b24cc78f2b563ee56631e81c98fb,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