Commit graph

1412 commits

Author SHA1 Message Date
Nickolay Kudasov
a6de4ba123 Remove IsIn from servant-docs 2017-01-16 13:20:39 +02:00
Nickolay Kudasov
e9b281f3cc Add IsIn and IsSubAPI constraints 2017-01-16 13:20:39 +02:00
Nickolay Kudasov
09c8464a5a Move type-level operations from Utils.Links to API.TypeLevel 2017-01-16 13:20:37 +02:00
Oleg Grenrus
5168157757 Make Handler a newtype 2017-01-16 12:18:49 +02:00
Oleg Grenrus
48014f4a66 Merge pull request #668 from phadej/fix_js_function_identifiers
Fix js function identifiers
2017-01-16 12:15:35 +02:00
Oleg Grenrus
77f69101fb Add changelog and resurrect one test (higlights the change) 2017-01-16 11:53:14 +02:00
Dario Bertini
c20c09411d Fix javascript function name generation, mostly fixes #191
and remove js-specific code in servant-foreign (code which would now be dead)
2017-01-16 11:47:55 +02:00
Oleg Grenrus
094f28b42d Merge pull request #664 from phadej/new-build
Make servant buildable with cabal new-build
2017-01-16 11:34:59 +02:00
Oleg Grenrus
d62865a71c Run also test/ doctests 2017-01-16 11:09:41 +02:00
Oleg Grenrus
d5e73bf577 Make servant buildable with cabal new-build 2017-01-16 11:03:06 +02:00
Oleg Grenrus
8822c12530 Merge pull request #666 from phadej/bug-fix-for-haslink
Bug fix for haslink
2017-01-16 11:01:45 +02:00
Oleg Grenrus
2b12436d3b Fix tests (URI -> Link) 2017-01-16 10:47:22 +02:00
Oleg Grenrus
826f0caf5b Add changelog entry 2017-01-16 10:47:22 +02:00
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