Commit graph

1574 commits

Author SHA1 Message Date
Oleg Grenrus
c09c0cfd3f Merge pull request #667 from phadej/abstract-handler
Make Handler a newtype
2017-01-17 14:14:03 +02:00
Simon Hafner
b3be590dad TypeError annotations for AllCTRender 2017-01-16 23:16:27 +01:00
Oleg Grenrus
555b60ea06 Merge pull request #345 from haskell-servant/fizruk/type-level-#305
Servant.API.TypeLevel
2017-01-16 14:53:07 +02:00
Oleg Grenrus
c7c6c054a5 Add Logic subsection to the export list 2017-01-16 14:36:51 +02:00
Oleg Grenrus
55c8f0b4a1 Add changelog entry 2017-01-16 13:59:24 +02:00
Oleg Grenrus
3c83f615ca Write explicit export list in Servant.API.TypeLevel 2017-01-16 13:54:00 +02:00
Oleg Grenrus
6cf3188907 Fix doctests 2017-01-16 13:43:24 +02:00
Julian K. Arni
931e67f347 Loads of documetation and doctests. 2017-01-16 13:20:39 +02:00
Julian K. Arni
02e4281d51 Custom type errors 2017-01-16 13:20:39 +02:00
Julian K. Arni
92b1196830 Redundant import fixes 2017-01-16 13:20:39 +02:00
Julian K. Arni
e0cd899e06 Updated changelog for Servant.API.TypeLevel changes 2017-01-16 13:20:39 +02:00
Nickolay Kudasov
b836f13dea Remove Elem from servant-foreign 2017-01-16 13:20:39 +02:00
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