on master help sign in
Add since annotation for ‘urlQ’ and update the changelog
commitcc231d844709024dd0b5df91f8d4e024990df9e6 authorMark Karpov <markkarpov92@gmail.com> dateSun 24 May 2020, 21:52 (6 years ago) parent9335700
2 files changed+8−2
CHANGELOG.md+4 Network/HTTP/Req.hs+4−2
CHANGELOG.md+4
@@ -1,3 +1,7 @@
1+## Unreleased
2+
3+* Added a quasiquoter for URL creation, `urlQ`.
4+
15## Req 3.1.0
26
37* Changed signature of `httpConfigRetryPolicy` to `RetryPolicyM IO`.
Network/HTTP/Req.hs+4−2
@@ -960,8 +960,10 @@ uriHost uri = case URI.uriAuthority uri of
960960 Just (URI.unRText authHost)
961961
962962-- | A quasiquoter to build an 'Url' and 'Option' tuple. The type of the
963−-- generated expression is `('Url' <scheme1>, 'Option' scheme2)` with
964−-- `<scheme1>` being either `Http` or `Https` depending on the input.
963+-- generated expression is @('Url' scheme0, 'Option' scheme1)@ with
964+-- @scheme0@ being either 'Http' or 'Https' depending on the input.
965+--
966+-- @since 3.2.0
965967urlQ :: TH.QuasiQuoter
966968urlQ =
967969 TH.QuasiQuoter