Commit graph

1691 commits

Author SHA1 Message Date
Sönke Hahn
49c301d26e html's verbatim is called pre 2014-11-13 20:50:36 +08:00
Sönke Hahn
286b1db836 Client Raw: returns Right (status, body) even for failure statuses 2014-11-13 20:36:36 +08:00
Sönke Hahn
eff31f7485 implemented 'instance HasClient Raw' 2014-11-13 19:57:53 +08:00
Sönke Hahn
9ee7373608 cabal: remove -Werror to allow deprecation warnings 2014-11-13 19:56:44 +08:00
Sönke Hahn
8d92d66e00 refactored Servant.Docs.ToSample 2014-11-13 19:55:03 +08:00
Alp Mestanogullari
4f62dceb78 Merge pull request #34 from alpmestan/jkarni/qq-parser
Switch to Parsec for QQ parsing
2014-11-13 11:59:30 +01:00
Sönke Hahn
69041cc39e S.Docs: added instance ToSample () 2014-11-13 15:11:32 +08:00
Sönke Hahn
82ff0a6ad7 added Servant.Utils.StaticFiles.serveDocumentation 2014-11-13 14:54:10 +08:00
Sönke Hahn
fc3c2c4128 fixup cabal file 2014-11-13 14:54:10 +08:00
Sönke Hahn
d8b0e4c7e5 add S.Utils.StaticFiles 2014-11-13 14:54:10 +08:00
Julian K. Arni
614c06b6e5 Switch to Parsec for QQ parsing 2014-11-12 11:34:33 +01:00
Alp Mestanogullari
e862fc7271 Merge pull request #33 from alpmestan/add_raw
Servant re-exports Servant.API.Raw
2014-11-12 11:08:45 +01:00
Sönke Hahn
656f80acad Servant re-exports Servant.API.Raw 2014-11-12 12:55:23 +08:00
Sönke Hahn
c8def821a1 Re-export Proxy(..) from module Servant 2014-11-11 15:58:35 +08:00
Sönke Hahn
165022a554 module refactoring: putting some things in Servant.Common 2014-11-07 19:12:27 +08:00
Sönke Hahn
1cd35034e9 module renaming: S.API.Elem -> S.Utils.Links 2014-11-07 16:59:36 +08:00
Sönke Hahn
af00035b99 module renaming: S.API.QQ -> S.Utils.ApiQuasiQuoting 2014-11-07 16:55:17 +08:00
Sönke Hahn
2f9fb2b713 removed S.Utils.Client (and put the code into S.Client.Req) 2014-11-07 15:23:50 +08:00
Sönke Hahn
bec10dd16a put Req in Servant.Utils.Req 2014-11-07 12:41:00 +08:00
Sönke Hahn
8e72c70767 moved S.Client.BaseUrl to S.Utils.BaseUrl 2014-11-07 11:58:41 +08:00
Sönke Hahn
93195abed6 put BaseUrl in it's own module 2014-11-07 11:09:54 +08:00
Sönke Hahn
85aceadc60 added instance Generic BaseUrl 2014-11-05 20:23:38 +08:00
Sönke Hahn
0e9d075ab4 add Show, Eq and Ord for BaseUrl 2014-11-05 20:10:46 +08:00
Sönke Hahn
f0bca3852c implement BaseUrl to allow https for Clients 2014-11-05 20:03:57 +08:00
Julian K. Arni
11f82633da Type safe links. 2014-11-04 12:24:52 +01:00
Sönke Hahn
fd636ead19 test suite: quickcheck property for a more complex client function 2014-10-31 15:49:58 +01:00
Sönke Hahn
10fa62e666 added servant/.ghci 2014-10-31 15:49:05 +01:00
Alp Mestanogullari
c4807709c4 add a lot of FromText/ToText instances 2014-10-31 15:40:56 +01:00
Sönke Hahn
16dbf9b188 Allow arbitrary JSON values (not only arrays and objects)
And added tests for QueryFlag.
2014-10-31 20:29:00 +08:00
Sönke Hahn
c2be4f3377 client tests: QueryParams 2014-10-31 20:18:31 +08:00
Alp Mestanogullari
0802221789 make QueryFlag more permissive 2014-10-31 13:01:12 +01:00
Sönke Hahn
a9eeff14bd client: correctly handle exceptions on error status codes 2014-10-31 18:01:00 +08:00
Sönke Hahn
a0c675f603 client test suite: testing ReqBody 2014-10-31 18:01:00 +08:00
Sönke Hahn
14e6a49912 client test suite: tweak 2014-10-31 18:01:00 +08:00
Sönke Hahn
cb1772f0a0 test suite: testing Client of Capture 2014-10-31 18:01:00 +08:00
Sönke Hahn
f058a3051a HasClient: changing URI to URIAuth (and adding the first client test
case)
2014-10-31 18:01:00 +08:00
Alp Mestanogullari
df12f9b9bd add doc generation support for QueryParams and QueryFlag 2014-10-30 12:34:16 +01:00
Alp Mestanogullari
e774af7707 add tests for QueryParams and QueryFlag 2014-10-30 12:34:16 +01:00
Alp Mestanogullari
bab2bc7edf server and client support for QueryParams (list of values in query string) and QueryFlag (value-less query string argument) 2014-10-30 12:34:16 +01:00
Sönke Hahn
08e2a6a895 renamed Union -> Alternative 2014-10-30 18:37:58 +08:00
Sönke Hahn
8539fa10fa cabal file: tweaks 2014-10-30 15:50:05 +08:00
Sönke Hahn
d326215103 tweaked copyright holder 2014-10-30 15:47:54 +08:00
Sönke Hahn
be5ea82524 -Wall police 2014-10-30 15:41:18 +08:00
Alp Mestanogullari
c61238c488 cabal file tweaks 2014-10-29 18:51:09 +01:00
Julian K. Arni
99e790492a QQ more tests and cleanup. 2014-10-29 14:54:13 +01:00
Julian K. Arni
d2f7e12bd9 More QQ tests. 2014-10-29 14:37:52 +01:00
Julian K. Arni
4ebd52b106 Some tests.
Mostly instrumentation for them.
2014-10-29 13:10:28 +01:00
Julian K. Arni
c6264dd202 Add queryParam.
And update names.
2014-10-29 13:10:04 +01:00
Julian K. Arni
1f6c3c4009 Add new request -> response syntax 2014-10-29 12:16:02 +01:00
Julian K. Arni
21c8fcbea2 Flip fixity of TH sub.
And do some general cleanup.
2014-10-29 12:16:02 +01:00