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:4
LTS Haskell 22.37:0.1.0.0@rev:5
Stackage Nightly 2024-10-11: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:567fc54e58be1bb3362af0da0e19e5d744cd97eecd9f6d9499bebfa8085332ed,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