Commit graph

1270 commits

Author SHA1 Message Date
Luke Cycon
21546991af Introduce a Handler alias for ExceptT ServantErr IO
Fixes #434
2016-04-11 22:27:29 -07:00
Sönke Hahn
b8422e80b2 Merge #456 2016-04-12 13:00:39 +08:00
Luke Cycon
b84016e191 Sort out this changelog situation 2016-04-11 21:54:04 -07:00
Luke Cycon
353c1798e1 Update some docs and the changelogs 2016-04-11 11:19:18 -07:00
Sönke Hahn
fffa72b62b Merge pull request #459 from joncfoo/patch-1
Fix code example in haddock  of servant-mock
2016-04-11 23:01:06 +08:00
Jonathan
aa71099ffd Update Mock.hs 2016-04-11 08:54:38 -05:00
Andres Löh
6ec4bdcc73 Merge pull request #451 from kosmikus/show-router
Improvements of router merging, visualization and testing
2016-04-11 08:43:10 +02:00
Andres Loeh
8c778825c7 Improvements and visualization of router structure.
* Improves how Routers are built, in particular via
the `choice` smart constructors. Static lookups are
now used more often.

* We now have test cases making sure that certain
routers have the same structure.

* The router structure can now be visualized for debugging
purposes as a tree. The new functions `layout` and
`layoutWithContext` do this.
2016-04-11 08:08:37 +02:00
Andrew Gibiansky
ba57d20008 Add ReflectMethod instances for OPTIONS, TRACE, and CONNECT 2016-04-11 11:50:15 +08:00
Jonathan
23fb5e1f56 Fix code example in haddock of servant-mock
The example in the haddock does not coincide with the example code in servant-mock/example/main.hs
2016-04-10 11:03:48 -05:00
Luke Cycon
f484483d84 Re-export throwE from module Servant
Fixes #442
2016-04-08 12:06:44 -07:00
Sönke Hahn
21822be75a update servant-server's changelog for 0.6.1 2016-04-08 14:49:51 +08:00
Sönke Hahn
8bf81190b2 add one more auth test
just to clarify on how to use it properly
2016-04-07 19:10:11 +08:00
Sönke Hahn
c2c9bef571 version bump 2016-04-07 18:24:29 +08:00
Sönke Hahn
285f47e252 sources.txt: prefer servant-server and servant-client
I think both for the release script and for CI it makes sense to prefer these
two packages.
2016-04-07 18:07:39 +08:00
Aaron Levin
56c13eeae9 Merge pull request #446 from haskell-servant/gen-auth-test-for-raw
Add test: Gen Auth properly supports Raw endpoints
2016-04-06 18:06:48 +02:00
aaron levin
8a0c3a9497 Add test: Gen Auth properly supports Raw endpoints 2016-04-06 13:45:44 +02:00
Sönke Hahn
6df3429b68 refactored basic auth test cases 2016-04-06 16:44:40 +08:00
Sönke Hahn
14ff219726 fix error status bug in basic auth
Fixes #440.
2016-04-06 11:18:20 +08:00
Sönke Hahn
4224c20bff some formatting and refactoring 2016-04-06 11:18:20 +08:00
Sönke Hahn
933a2c4445 re-export ClientM from Servant.Client. 2016-04-05 17:51:25 +08:00
Sönke Hahn
14a8139cbe version bump 2016-04-04 16:22:11 +08:00
Sönke Hahn
1fe37d5170 move doc/tutorial out of sources.txt 2016-04-04 16:22:11 +08:00
Sönke Hahn
94982c15dc move travis script into a file 2016-04-04 16:22:11 +08:00
Sönke Hahn
2367ee9965 put 0.6 into changelogs 2016-04-04 16:22:11 +08:00
Sönke Hahn
7ec8eae2e7 fixed release readme and bumper script 2016-04-04 16:22:11 +08:00
Sönke Hahn
b72c271c2c remove ToText from docs 2016-04-02 15:03:00 +08:00
Alexander Kjeldaas
4f558971d1 Removed FromText references from docs. 2016-04-01 22:56:19 +02:00
Sönke Hahn
2fb981f02a Merge branch 'pr' 2016-04-01 18:46:15 +08:00
Sönke Hahn
1920694f62 cabal: decrease upper bound for base to disallow ghc-8 2016-03-31 15:51:40 +08:00
mbg
6fd1e21580 Updated changelog to reflect that client no longer requires BaseUrl and Manager arguments 2016-03-30 22:51:08 +01:00
mbg
a9200cd050 Modified the tutorial to reflect the changes to servant-client (explicit parameters) 2016-03-30 22:50:29 +01:00
mbg
9e1ba9221d Manager and BaseUrl are now explicit parameters of all client functions, instead of ReaderTs 2016-03-30 22:41:39 +01:00
mbg
41129e98b3 Removed GetNth and GetLast type classes 2016-03-28 18:01:53 +01:00
mbg
19a4e037d8 Updated tutorial to reflect the updated client function in servant-client 2016-03-28 15:27:51 +01:00
mbg
316737c16d Updated documentation in Client.hs to reflect the changes to the client function 2016-03-28 14:56:50 +01:00
mbg
89b0758dc8 Changed servant-client tests to reflect the changes to the client function 2016-03-28 14:52:33 +01:00
mbg
7379b7486a Moved BaseUrl and Manager parameters from the client function to the Client type as discussed in #428 2016-03-28 14:51:07 +01:00
Sönke Hahn
97168459fd servant-server: add a test-case for streaming request bodies from client to server 2016-03-27 17:23:33 +08:00
Sönke Hahn
5890d5253b update changelog 2016-03-27 17:05:59 +08:00
Aaron Levin
57afd80d5d Merge pull request #429 from haskell-servant/add-auth-to-tutorial-toc
include Authentication.lhs in tutorial project and table of contents
2016-03-26 22:57:51 +01:00
Alp Mestanogullari
5b068b3ad3 Authentication.lhs in tutorial project + toc 2016-03-26 21:14:18 +01:00
Sönke Hahn
09c40f61e2 return 400 (instead of 404) on invalid captures 2016-03-26 20:59:00 +08:00
Sönke Hahn
b4eef7acde refactored HasServer Capture instance 2016-03-26 20:58:59 +08:00
Sönke Hahn
509d8ab605 Merge branch 'pr' 2016-03-26 19:35:15 +08:00
Alexander Kjeldaas
0c01b0dba4 Fixed some minor typos 2016-03-25 19:09:44 +01:00
Alexander Kjeldaas
0ad60fe093 Document http error codes 2016-03-25 10:53:45 +01:00
Jonathan Curran
9c4aeec792 Add link to old tutorial 2016-03-22 08:32:15 -05:00
Julian K. Arni
a35aa161a6 Fix link to serveDirectory. 2016-03-22 21:00:48 +08:00
Aaron Levin
fbf7c02d73 Merge pull request #416 from haskell-servant/jkarni/basic-auth-tutorial
Add basic auth to tutorial
2016-03-20 22:21:25 +01:00