Commit graph

1349 commits

Author SHA1 Message Date
Alejandro D. P
9e4285f99d Yielding for safe instances of HasLink 2017-01-16 10:47:22 +02:00
Oleg Grenrus
372c1e2a32 Update stack.yaml to use lts-6.27 2017-01-16 10:47:22 +02:00
Oleg Grenrus
cfaa7a06be Merge pull request #665 from phadej/client-monad-control
Add MonadBaseControl IO ClientM instance
2017-01-16 10:25:35 +02:00
Oleg Grenrus
e6206cc51e Add more changelog entries 2017-01-16 10:11:38 +02:00
Oleg Grenrus
6faa742c4a Update changelog 2017-01-16 10:02:54 +02:00
Oleg Grenrus
b548f8df86 Add MonadBaseControl IO ClientM instance 2017-01-16 09:51:39 +02:00
Alp Mestanogullari
eac364e98c Merge pull request #661 from kosmikus/pr/servant-client-streaming-request-body
servant-client: generalize the function to set the request body
2017-01-12 15:58:03 +01:00
Andres Loeh
bc04d120ec Allow more flexbility in setting the request body.
Rather than hard-coding the `RequestBodyLBS` constructor and be
limited to lazy bytestrings, the new function `setReqBody` just
takes any value of type `RequestBody`.

The old function `setRQBody` has been renamed to `setReqBodyLBS`.
The old name is still available, but deprecated.

The change has the advantage the we can define new servant API
combinators that use streaming request bodies such as for example
constructed by the `streamFile` function in http-client.

The behaviour for the existing `ReqBody` API combinator is
unaffected by this change.
2017-01-12 14:08:50 +01:00
Alp Mestanogullari
875f5921fc Merge pull request #653 from phadej/aeson-1.1
Support aeson-1.1
2017-01-03 11:04:25 +01:00
Alp Mestanogullari
6234eae2ac Merge pull request #615 from phadej/mime-unrender-multiple
Mime unrender multiple
2017-01-01 22:17:50 +01:00
Oleg Grenrus
85feb31cbb Fix hspec-wai issue 2017-01-01 20:52:18 +02:00
Oleg Grenrus
4d4bc8e9f4 Pass contentType to the mimeUnrender variant 2017-01-01 20:05:12 +02:00
Oleg Grenrus
1f00a68937 Support aeson-1.1 2017-01-01 20:02:56 +02:00
Alp Mestanogullari
e8ba67048a Merge pull request #614 from phadej/accept-multiple
Allow multiple content-types for single Accept
2017-01-01 11:31:00 +01:00
Julian Arni
37ec081c20 Merge pull request #646 from genya0407/422-unprocessable-entity-error
add HTTP status code 422
2016-12-04 21:56:59 +00:00
Yusuke Sangenya
d2a51396cc add HTTP status code 422 2016-12-03 16:44:34 +09:00
Julian Arni
8ed7a95458 Merge pull request #635 from phadej/natural-transformation-0.4
Use natural-transformation-0.4
2016-11-19 15:14:59 +00:00
Oleg Grenrus
894273dd0d Add changelog entry for NT change 2016-11-18 18:41:34 +02:00
Oleg Grenrus
34166ae749 Update tutorial (NT changes) 2016-11-16 08:29:36 +02:00
Oleg Grenrus
b1ac9dc450 Use natural-transformation-0.4 2016-11-15 22:36:22 +02:00
Oleg Grenrus
da55698fad Add multiple mimetypes tests 2016-11-10 21:22:01 +02:00
Oleg Grenrus
93a9a17f9a Don't depend on semigroups on GHC >=8.0 2016-11-10 21:22:01 +02:00
Oleg Grenrus
3fec1a086a Use TupleSections, not list comprehensions 2016-11-10 21:22:01 +02:00
Oleg Grenrus
1abf84feca servant-client asks for any content-type in Accept contentTypes ne-list 2016-11-10 21:22:00 +02:00
Oleg Grenrus
148bb15635 Make MINIMAL contentType | contentTypes 2016-11-10 21:21:15 +02:00
Oleg Grenrus
bf66b2b1ff Allow multiple content-types for single Accept 2016-11-10 21:21:15 +02:00
Julian K. Arni
4fd31a60fb Bump version.
To 0.9.1.1
2016-10-27 13:25:27 +02:00
Julian Arni
67c26cb7bc Merge pull request #629 from hamishmack/master
Derive MonadThrow and MonadCatch for ClientM
2016-10-27 12:23:14 +01:00
Hamish Mackenzie
49931913c9 Derive MonadThrow and MonadCatch for ClientM 2016-10-27 22:32:41 +13:00
Julian K. Arni
9e809a0756 Bump version.
To 0.9.1.
2016-10-26 17:35:57 +02:00
Julian Arni
cd9bc8b52f Merge pull request #626 from haskell-servant/jkarni/response-header-tutorial
Add more documentation about response headers to tutorial.
2016-10-26 16:28:54 +01:00
Julian K. Arni
5e09493aa6 Add more documentation about response headers to tutorial. 2016-10-26 17:17:34 +02:00
Julian Arni
c0906d1873 Merge pull request #623 from haskell-servant/jkarni/noHeader
Add noHeader function.
2016-10-24 16:37:24 +01:00
Julian K. Arni
9ad2efe862 Review fixes 2016-10-24 17:15:29 +02:00
Sönke Hahn
3f6ecbb77b add err418 2016-10-24 10:42:48 -04:00
Julian K. Arni
ed82056052 Add noHeader function.
Which allows not adding a header where a signature declares one, making
    response headers optional.
2016-10-21 14:36:14 +02:00
Sönke Hahn
79f53cef3e servant-client: use base-compat in order to use less CPP 2016-10-17 11:52:40 -04:00
Ruben Moor
f352f3b136 Update Authentication.lhs 2016-10-14 11:09:46 -04:00
Julian K. Arni
3ddf225cec Bump version.
To 0.9.0.1.
2016-10-09 22:52:49 +02:00
VyacheslavHashov
c0c1f0fa25 Fixed haddocs in correspondence with the change ClientM to ReaderT 2016-10-09 16:19:14 -04:00
Julian Arni
def2f4ba1e Merge pull request #611 from phadej/remove-servant-js
Move servant-js to own repo
2016-10-08 15:44:11 +01:00
Oleg Grenrus
32313d9baf Move servant-js to own repo 2016-10-08 15:08:07 +01:00
Sönke Hahn
bc1a3e7faa bump version 2016-09-17 11:47:57 -04:00
Sönke Hahn
d7d22b8050 tweake changelogs for the upcoming release 2016-09-17 11:46:26 -04:00
Sönke Hahn
2a21e14e6e Merge pull request #601 from timhabermaas/master
Fix typo in servant-js README
2016-09-17 11:36:39 -04:00
Tim Habermaas
5d4b730b3e Fix typo in servant-js README 2016-09-16 18:48:54 +02:00
Julian Arni
a274d8a124 Merge pull request #592 from haskell-servant/use-http-api-forms
Use http api forms
2016-09-13 10:30:34 -03:00
Julian K. Arni
501212e6b9 Review fixes 2016-09-12 20:40:03 -03:00
Julian K. Arni
7cdebce96b Bounds and stack files 2016-09-12 18:34:18 -03:00
Julian K. Arni
0870b3b2f5 Remove FromFormUrlEncoded and ToFormUrlEncoded.
In favor of FromForm and ToForm from the new version of http-api-data.
2016-09-12 18:34:18 -03:00