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:5b9c9aead85425a058aeea89bab0c5058098e081ed174403e34a469257d8f148,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