Commit graph

2443 commits

Author SHA1 Message Date
David Turner
4c64c13af0 Add EmptyAPIClient and instance HasClient EmptyAPI 2017-05-16 10:06:48 +00:00
David Turner
94483d586c Add instance HasServer EmptyAPI 2017-05-16 10:06:25 +00:00
David Turner
8a16f47fba Add EmptyAPI example (no prose yet) 2017-05-16 10:06:23 +00:00
David Turner
b81fbe445d Renumber again to make room for the EmptyAPI example 2017-05-16 10:06:16 +00:00
David Turner
e8c7158600 Renumber APIs in the tutorial to be in order 2017-05-16 10:06:00 +00:00
David Turner
5a65563d9a Re-export EmptyAPI(..) from Servant.API 2017-05-16 10:05:58 +00:00
David Turner
d02c7668ee Add EmptyAPI type 2017-05-16 10:05:24 +00:00
Oleg Grenrus
02fad699aa Merge pull request #748 from phadej/raw-server
ServerT Raw m = Tagged m Application
2017-05-16 10:23:43 +03:00
Alexander Vieth
6389134423 Change to ServerT Raw m = Tagged m Application
For uniformity of Enter.

Previously, `ServerT Raw m ~ Application`. Seems reasonable, but has the
unfortunate consequence of making `Enter` useless for `Raw` routes.
With this change `Tagged m Application` is retagged by `Enter`.
2017-05-15 19:54:43 +03:00
Oleg Grenrus
301515210b Merge pull request #751 from phadej/regression-734
Add regression test for #734
2017-05-15 19:52:49 +03:00
Oleg Grenrus
af8b14f248 Merge pull request #750 from haskell-servant/enter-tweak
Add functional dependency back to Enter
2017-05-15 19:49:12 +03:00
Oleg Grenrus
6fff76e304 Add regression test for #734 2017-05-15 19:45:14 +03:00
Oleg Grenrus
d4cffe6591 Add functional dependency back to Enter 2017-05-15 19:26:03 +03:00
Oleg Grenrus
acbcebc1d3 Fix Show UrlReq 2017-05-15 19:06:06 +03:00
Oleg Grenrus
4ae8b1898f Merge pull request #740 from stevana/client/include-request-in-failure-response
Include the request that failed in FailureResponse.
2017-05-15 12:32:45 +03:00
Oleg Grenrus
018a38cc93 Merge pull request #696 from edsko/pr/escape-capture
Make sure path components get escaped
2017-05-14 21:01:53 +03:00
Oleg Grenrus
54c3053342 Escape segments in linkURI 2017-05-14 20:42:10 +03:00
Oleg Grenrus
2cfcff4c7f Merge pull request #745 from phadej/issue-715
Resolve #715: Add linkUri'
2017-05-14 20:38:40 +03:00
Oleg Grenrus
4ed6e72110 Merge pull request #744 from phadej/http-api-data-0.3.6
Bump lower bound for http-api-data
2017-05-14 20:36:00 +03:00
Oleg Grenrus
590c4cb25c Bump lower bound for http-api-data 2017-05-14 20:16:38 +03:00
Oleg Grenrus
da1c3f1e7a Add doctests 2017-05-14 20:15:12 +03:00
Oleg Grenrus
abb48a2713 Resolve #715: Add linkUri' 2017-05-14 19:53:52 +03:00
Oleg Grenrus
57696dcd6f Merge pull request #671 from reactormonk/typeerror
TypeError annotations for AllCTRender
2017-05-14 19:38:46 +03:00
Oleg Grenrus
27facba0e8 Trim trailing whitespace 2017-05-14 19:26:25 +03:00
Simon Hafner
bbc872e154 Fixed unticked-promoted-constructors 2017-05-14 16:26:25 +02:00
Simon Hafner
35e3fd6e81 No stack bump 2017-05-14 16:26:18 +02:00
Oleg Grenrus
4eabab7e44 Merge pull request #716 from zohl/fix-minor-typos
fix minor typos
2017-05-14 16:10:07 +03:00
Oleg Grenrus
40588d584c Merge pull request #725 from ivan-m/patch-1
Import correct Servant module in doc README
2017-05-14 16:03:02 +03:00
Stevan Andjelkovic
29c9d85ade Use BaseUrl and Req instead of Request. 2017-05-05 17:05:55 +02:00
Stevan Andjelkovic
bf9c84eccb Two failed responses can be equal even though they don't come from
the same request.
2017-05-05 15:55:21 +02:00
Stevan Andjelkovic
b8de9c8527 Include the request that failed in FailureResponse. 2017-05-05 15:31:38 +02:00
Oleg Grenrus
c84e650495 Merge pull request #739 from endgame/738-missing-error-codes
Servant.Server: Re-export missing error codes
2017-05-05 11:47:40 +03:00
Jack Kelly
f52bd11d6b Servant.Server: Re-export missing error codes 2017-05-05 18:39:01 +10:00
Oleg Grenrus
7e5eca3d1c Merge pull request #727 from declension/606-fix-client-documentation
Improve Client docs
2017-05-05 10:19:02 +03:00
Oleg Grenrus
d0048057cd Merge pull request #736 from phadej/entered
Redo Enter
2017-05-05 10:17:34 +03:00
Oleg Grenrus
f26a2d10c5 Merge pull request #724 from Philonous/header-parsing
Throw 400 on header parse failure
2017-05-05 10:17:18 +03:00
Oleg Grenrus
8aef5f67d7 Merge pull request #737 from phadej/generics-sop-0.3
Allow generics-sop-0.3
2017-04-29 16:07:02 +03:00
Oleg Grenrus
f4b6144a11 Allow generics-sop-0.3 2017-04-29 15:39:25 +03:00
Oleg Grenrus
c01dca6d27 Parens 2017-04-28 14:55:13 +03:00
Oleg Grenrus
e2665391f9 Redo Enter 2017-04-28 14:31:57 +03:00
Oleg Grenrus
832b359380 Merge pull request #730 from phadej/aeson-1.2
Allow aeson-1.2
2017-04-23 22:18:08 +03:00
Oleg Grenrus
df0755c557 Workaround TypeError doctest failures 2017-04-23 21:41:39 +03:00
Oleg Grenrus
c5cd6a2172 Allow semigroupoids-5.2 2017-04-23 21:02:51 +03:00
Oleg Grenrus
e49d491164 Allow aeson-1.2 2017-04-17 21:35:20 +03:00
Nick B
fa422bb298 Docs: Updated wording as per PR comments. 2017-04-11 08:34:57 +01:00
Nick B
45a7bb1b73 Improve Client docs
* Use suggestion in #606 to document pattern matching client behaviour better
 * Helpful suggestion of reading in order in the index
 * A couple of extra internal links
 * Fox some typos / punctuation.

Fixes #606
2017-04-07 21:02:57 +01:00
Ivan Lazar Miljenovic
16a45e0d0f Import correct Servant module in README 2017-04-07 10:33:22 +10:00
Philipp Balzarek
b3c1f95636 update CHANGELOG.md 2017-04-06 14:53:01 +02:00
Philipp Balzarek
08786aadbe Check for parse errors in HasServer Header instance 2017-04-06 14:52:55 +02:00
Oleg Grenrus
86ad89b15c Merge pull request #722 from RyanGlScott/master
Make servant-foreign build on GHC 8.2
2017-04-01 22:14:47 +03:00