Commit graph

127 commits

Author SHA1 Message Date
Alp Mestanogullari
73914586b1 add the Canonicalize type family which turns an API type into its canonical form 2015-03-09 13:39:40 +01:00
Timo von Holtz
07cd4f65d6 Expose FormUrlEncoded through Servant.API 2015-03-04 09:04:21 +11:00
Julian K. Arni
635902e592 Cleanup, including:
- Integrated doctests into cabal
        - Doctest more of the documentation
        - Remove the (:>) constructor
        - Give kind signatures to Symbols
        - Make all constructors typeable
        - Use stylish-haskell for consistency of styling
        - Cleanup documentation
        - Remove old TODO.md
2015-02-25 23:10:29 +01:00
Julian K. Arni
1a200f1c48 Use lenient decoding for JSON. 2015-02-25 12:48:15 +01:00
Timo von Holtz
4f91a28d57 Add test for FormUrlEncoded using Network.URL 2015-02-23 16:54:10 +11:00
Timo von Holtz
1d378e644c Add support for application/x-www-form-urlencoded 2015-02-21 07:52:38 +11:00
Julian K. Arni
5be2430b11 Fix Integer FromText instance.
And add FromText/ToText tests.
2015-02-20 17:05:59 +01:00
Julian K. Arni
5470297bdc Remove QQ for now 2015-02-20 15:08:13 +01:00
Julian K. Arni
99374c5868 Only 'text' type should have charset parameter 2015-02-20 15:05:24 +01:00
Julian K. Arni
08528dccfa More content type tests 2015-02-20 12:26:53 +01:00
Julian K. Arni
0453cc3d2a Some tests for provided content-types. 2015-02-20 01:12:34 +01:00
Julian K. Arni
d299bd3397 Move Mime(Un)Render and remove types which don't have instances for them 2015-02-20 01:07:06 +01:00
Julian K. Arni
ebc266022c Small tweaks for servant-server 2015-02-19 19:18:08 +01:00
Julian K. Arni
5e4297a135 Review fixes 2015-02-19 13:46:11 +01:00
Julian K. Arni
21667cc049 Remove unneeded module 2015-02-18 11:50:52 +01:00
Julian K. Arni
dab3c9b62d fix rebase issues 2015-02-18 10:40:55 +01:00
Julian K. Arni
a75c723226 Move more content-type logic from servant-server 2015-02-18 10:29:16 +01:00
Julian K. Arni
d7e1f1230e WIP 2015-02-18 10:29:16 +01:00
Julian K. Arni
a1e1de91a9 ReqBody content types.
And general cleanup.
2015-02-18 10:29:16 +01:00
Julian K. Arni
98e02ea7cf Move accept handling into servant-server. 2015-02-18 10:25:33 +01:00
Julian K. Arni
8930a45403 Add Content Types.
Still needs QQ.
2015-02-18 10:25:33 +01:00
Julian Arni
648dc2f2fb Merge pull request #11 from anchor/patch-method
Patch method
2015-02-15 00:59:19 +08:00
Timo von Holtz
71011745c0 Actually include the Patch.hs 2015-02-10 11:28:16 +11:00
Timo von Holtz
59a20b2974 Add PATCH method 2015-02-10 11:18:13 +11:00
Christian Marie
d03788ee21 Flip safeLink and rename link to toLink 2015-01-30 11:03:48 +11:00
Christian Marie
36268030b5 Correct typo in Util.Links documentation 2015-01-29 17:45:47 +11:00
Christian Marie
3a4471f211 Remove Monoid instance of Link and simplify Utils.Links documentation 2015-01-29 15:03:33 +11:00
Christian Marie
c1ab495a7a Utils.Link documentation cleanup 2015-01-29 11:28:01 +11:00
Christian Marie
12d0d0a6e7 Documentation improvements and minor cleanup 2015-01-29 10:39:02 +11:00
Christian Marie
70ffe01f9a Rewrite Utils.Links to export a nicer API.
* Add support for parameters.
* Clean up type level magic, invalid links no longer have a type.
* Proxies are now used to be consistent with the rest of the servant ecosystem.
2015-01-29 10:07:01 +11:00
Christian Marie
6785717d8c Add constrainty Link implementation. 2015-01-27 16:06:21 +11:00
Christian Marie
7336ecbaeb Export open type family IsElem' to allow custom API types in Links.
Also:
* Export unLink function to be able to use the contents of a Link
* Add Raw to the isLink'' family.
2015-01-23 17:44:06 +11:00
Daniel Larsson
fcf5402861 Rebased to latest upstream 2015-01-15 10:44:45 +01:00
Daniel Larsson
0b2f2ae490 Added test cases for matrix parameters. Added some missing cases in the IsElem type family (QueryParams and QueryFlag) 2015-01-15 10:40:57 +01:00
Daniel Larsson
839f5a79a9 Added support for matrix parameters 2015-01-15 10:38:59 +01:00
Matthias Fischmann
40b13a9c86 Explicit imports in /src. 2015-01-06 17:54:53 +01:00
Matthias Fischmann
9b10181d9a Remove unused imports. 2015-01-06 17:51:07 +01:00
Sean Leather
4a89f5d6c7 Fix typo 2014-12-12 21:04:03 +02:00
Alp Mestanogullari
9aeb295955 make ReqBody kind polymorphic (for a test) 2014-12-10 16:31:40 +01:00
Alp Mestanogullari
6836eb6bcc add split server-side bits into servant-server 2014-12-10 16:31:40 +01:00
Julian K. Arni
f4f86520bc Clean up QQ and Utils.Links haddock. 2014-12-10 10:34:49 +01:00
Alp Mestanogullari
501dafaeba add Servant.API.Header 2014-12-08 12:28:11 +01:00
Alp Mestanogullari
0dfd2434ac fix build error for servant's spec 2014-11-27 18:50:29 +01:00
Alp Mestanogullari
67abcff47f first shot at splitting servant into servant, servant-client and servant-docs 2014-11-27 18:28:01 +01:00
Alp Mestanogullari
52c24c8b35 Merge branch 'jkarni/qq-docs' into new-impl 2014-11-25 17:39:30 +01:00
Julian K. Arni
dee47654f9 Rename ApiQuasiQuoting.
And fix haddocks for it.
2014-11-25 16:35:56 +01:00
Julian K. Arni
63584d52b7 QQ and safe links documentation. 2014-11-25 16:10:59 +01:00
Alp Mestanogullari
5435dd4032 Haddocks for the StaticFiles module 2014-11-25 15:48:30 +01:00
Alp Mestanogullari
5b5f530406 fix Docs haddocks 2014-11-24 16:22:55 +01:00
Alp Mestanogullari
60c7addb5e more haddocks 2014-11-22 19:19:21 +01:00