[chore] add hackage to README.md
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
30af8940ec
commit
d5d506ffc6
|
@ -1,4 +1,4 @@
|
||||||
[![ci](https://ci.mangoiv.com/api/badges/11/status.svg)](https://ci.mangoiv.com/repos/11)
|
[![Hackage](https://img.shields.io/hackage/v/http-barf.svg)](https://hackage.haskell.org/package/http-barf) [![ci](https://ci.mangoiv.com/api/badges/11/status.svg)](https://ci.mangoiv.com/repos/11)
|
||||||
|
|
||||||
# http barf
|
# http barf
|
||||||
|
|
||||||
|
|
|
@ -178,7 +178,7 @@ h_ k v = MkReq \req -> req {headers = (k, v) `V.cons` req.headers}
|
||||||
|
|
||||||
-- | 'v_' like "value"
|
-- | 'v_' like "value"
|
||||||
--
|
--
|
||||||
-- this is a convenience helper for using @'j_' @Value@. It is useful
|
-- this is a convenience helper for using @'j_'@ specialised to 'Value'. It is useful
|
||||||
-- if you just want to quickly build a json body for your request.
|
-- if you just want to quickly build a json body for your request.
|
||||||
--
|
--
|
||||||
-- if the json body is already set, it /will be overwritten/
|
-- if the json body is already set, it /will be overwritten/
|
||||||
|
@ -196,7 +196,7 @@ j_
|
||||||
=> a
|
=> a
|
||||||
-- ^ the value of the json body
|
-- ^ the value of the json body
|
||||||
-> Req
|
-> Req
|
||||||
j_ val = MkReq \req -> req {jsonBody = Just (Aeson.toJSON val)}
|
j_ = v_ . Aeson.toJSON
|
||||||
|
|
||||||
-- | print the request before dispatching, useful for debugging
|
-- | print the request before dispatching, useful for debugging
|
||||||
inspectRequest_ :: Req
|
inspectRequest_ :: Req
|
||||||
|
|
Loading…
Reference in a new issue