http-query 0.1.1 → 0.1.2
raw patch · 4 files changed
+17/−11 lines, 4 filesdep +http-clientdep +http-client-tlsPVP ok
version bump matches the API change (PVP)
Dependencies added: http-client, http-client-tls
API changes (from Hackage documentation)
Files
- ChangeLog.md +3/−0
- README.md +6/−6
- http-query.cabal +7/−3
- src/Network/HTTP/Query.hs +1/−2
ChangeLog.md view
@@ -1,5 +1,8 @@ # Revision history for http-query +## 0.1.2 (2022-02-17)+- webAPIQuery: revert to not using setRequestCheckStatus+ ## 0.1.1 (2021-11-29) - add apiQueryURI: returns the URI of a query - fix build with aeson-2.0
README.md view
@@ -3,9 +3,9 @@ [](https://github.com/juhp/http-query/actions) [](http://hackage.haskell.org/package/http-query) -Very thin layer over http-conduit for simpler web json API queries.+Very thin layer over http-conduit for simpler web API JSON queries. -See the Network.HTTP.Query documentation for more details.+See the [Network.HTTP.Query](https://hackage.haskell.org/package/http-query/docs/Network-HTTP-Query.html) documentation for more details. ## Examples @@ -14,7 +14,7 @@ - https://hackage.haskell.org/package/cached-json-file - https://hackage.haskell.org/package/fbrnch - https://hackage.haskell.org/package/stack-all-- https://github.com/juhp/bodhi-hs-- https://github.com/juhp/copr-hs-- https://github.com/juhp/pagure-hs-- https://github.com/juhp/pdc-hs+- https://hackage.haskell.org/package/bodhi+- https://hackage.haskell.org/package/copr-api+- https://hackage.haskell.org/package/pagure+- https://hackage.haskell.org/package/pdc
http-query.cabal view
@@ -1,13 +1,13 @@ name: http-query-version: 0.1.1+version: 0.1.2 synopsis: Simple http queries description:- Simple web API queries to JSON.+ Simple web API queries returning JSON. license: BSD3 license-file: LICENSE author: Jens Petersen <juhpetersen@gmail.com> maintainer: Jens Petersen <juhpetersen@gmail.com>-copyright: 2020-2021 Jens Petersen <juhpetersen@gmail.com>+copyright: 2020-2022 Jens Petersen <juhpetersen@gmail.com> category: Web homepage: https://github.com/juhp/http-query bug-reports: https://github.com/juhp/http-query/issues@@ -29,6 +29,10 @@ , text if impl(ghc < 8) build-depends: transformers+ if impl(ghc<8.3)+ build-depends:+ http-client < 0.7.11 || > 0.7.11,+ http-client-tls < 0.3.6 || > 0.3.6 exposed-modules: Network.HTTP.Query hs-source-dirs: src
src/Network/HTTP/Query.hs view
@@ -95,8 +95,7 @@ case parseURI url of Nothing -> error $ "Cannot parse uri: " ++ url Just uri ->- let req = setRequestCheckStatus $- setRequestQueryString params $+ let req = setRequestQueryString params $ requestFromURI_ uri in getResponseBody <$> httpJSON req