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:1
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:a4bbb684c6d2995134c4e005199cd51f44071049a5949f92bcbf444178e6fae8,1744

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