Commit graph

1242 commits

Author SHA1 Message Date
Julian Arni
68a129dcd3 Merge pull request #28 from haskell-servant/jkarni/response-headers
Add response headers.
2015-04-14 15:53:32 +02:00
Julian K. Arni
1a2a0d027a Add response headers. 2015-04-14 12:00:57 +02:00
Alp Mestanogullari
f90348c03a Merge pull request #18 from haskell-servant/jkarni/cleanup
Cleanup
2015-04-08 18:25:32 +03:00
Julian K. Arni
9996e6755b Cleanup: tests, fix ToJSON supeclass. 2015-04-08 16:58:48 +02:00
Julian K. Arni
52157f5181 Add nix files 2015-04-08 16:27:24 +02:00
Julian Arni
8c6f327c0d Merge pull request #11 from haskell-servant/pr5
Matrix params
2015-04-08 12:28:30 +02:00
Julian K. Arni
ad900cda51 More PR5 fixes 2015-04-08 12:08:18 +02:00
Julian Arni
1eaed73794 Merge pull request #38 from haskell-servant/jkarni/fix-406
Don't succeedWith when response content-type is unacceptable.
2015-04-07 16:40:19 +02:00
Julian K. Arni
fed014e120 Pay back some test-debt 2015-04-07 16:25:23 +02:00
Julian K. Arni
622c77251e Don't succeedWith when response content-type is unacceptable. 2015-04-06 16:12:28 +02:00
Julian Arni
14f63520d0 Merge pull request #23 from haskell-servant/jkarni/patch-etc
Add patch method, and make () response expect no content
2015-03-26 19:17:19 +01:00
Julian K. Arni
3802ef5447 Add patch method, and make () response expect no content 2015-03-26 14:34:38 +01:00
Alp Mestanogullari
a06e54610c add lens as a dependency for the example 2015-03-26 13:26:23 +01:00
Alp Mestanogullari
32768e431e import Control.Lens in the example 2015-03-26 13:14:34 +01:00
Alp Mestanogullari
38fea6060e do not export Control.Lens and Data.Monoid from Servant.Docs 2015-03-26 13:03:22 +01:00
Alp Mestanogullari
9a4cfd64c5 changelog entry for Raw-client-returning-whole-response commit 2015-03-26 12:56:54 +01:00
Alp Mestanogullari
989849c8a1 Merge pull request #17 from haskell-servant/raw-fullresponse
Return complete `Response` in client for Raw endpoint
2015-03-26 12:55:07 +01:00
Julian Arni
ac733be7f2 Merge pull request #22 from Fuuzetsu/accepted-codes
Accept wider range of return codes
2015-03-25 18:50:08 +01:00
Julian Arni
685eec0773 Merge pull request #21 from Fuuzetsu/ghci-file
Add .ghci file
2015-03-25 17:10:48 +01:00
Mateusz Kowalczyk
d21f0bbbfc Accept wider range of return codes
DELETE
201 doesn't make sense
I think we can get away with just 204 without 205 and 206

GET
206 should be handled by the lib itself (?) so we only add 203

Closes #20
2015-03-25 15:39:55 +00:00
Mateusz Kowalczyk
b0056294cc Add .ghci file 2015-03-25 15:36:08 +00:00
Julian K. Arni
2931d2e119 Make full-precision FromText for Float and Double 2015-03-24 14:53:39 +01:00
Julian K. Arni
467df6dd66 Rebase fix 2015-03-19 17:16:44 +01:00
Daniel Larsson
8ee9b60a50 Added support for matrix parameters. 2015-03-19 17:08:39 +01:00
Daniel Larsson
9e5bed268e Added support for matrix parameters. 2015-03-19 17:07:19 +01:00
Christian Marie
24e32f194e Correct accuracy for Double tests 2015-03-18 09:14:58 +11:00
Julian Arni
e45beddd35 Merge pull request #26 from haskell-servant/wip-allow-bodies-for-links
Fix a HasLink instance, also fix float text handling/tests.
2015-03-17 09:48:53 +01:00
Christian Marie
7d91e50fc7 Correct ReqBody instance for link generation. Was partially applied 2015-03-17 12:10:24 +11:00
Christian Marie
47a30c6411 Make fromText of Float more accurate, relax accuracy for Float and Double tests 2015-03-17 12:08:47 +11:00
Timo von Holtz
ecb8627433 Return complete response in Raw endpoint 2015-03-16 11:12:11 +11:00
Julian Arni
25d1e466e9 Merge pull request #33 from haskell-servant/jkarni/no-content
Make Post and Put return NoContent when response is ()
2015-03-13 10:14:44 +01:00
Julian K. Arni
b35512c3d4 Update changelog 2015-03-12 18:37:08 +01:00
Julian K. Arni
5eddb318a2 Make Post and Put return NoContent when response is () 2015-03-12 18:29:57 +01:00
Alp Mestanogullari
c1ed47b35f add changelog entry 2015-03-11 14:34:33 +01:00
Alp Mestanogullari
837099d12d Canonicalize the API type to make sure that the following 'law' holds: Server (a :> (b :<|> c)) ~ Server (a :> b) :<|> Server (a :> c) 2015-03-11 14:34:33 +01:00
Julian K. Arni
bd9d476679 CHANGELOG update for PR #21. 2015-03-11 14:33:51 +01:00
Roland Schatz
f76c729a08 Introduce ServerT to specify generic handlers. 2015-03-11 14:33:51 +01:00
Alp Mestanogullari
3311cbd901 Merge pull request #23 from haskell-servant/canonical-types
Add the `Canonicalize` type family to reduce API types to their canonical forms before proceeding in the other packages
2015-03-11 12:17:10 +01:00
Alp Mestanogullari
7a83952bad some more documentation, code cleanup + changelog entry 2015-03-11 11:46:35 +01:00
Julian K. Arni
bd98844357 CHANGELOG update for PR #21. 2015-03-10 23:07:24 +01:00
Julian Arni
1b61455d2b Merge pull request #21 from rschatz/master
Support other monads than just IO.
2015-03-10 18:51:11 +01:00
Alp Mestanogullari
6909b54367 add a clause to Canonicalize for (a :<|> b) :> c with the obvious definition 2015-03-10 12:08:17 +01:00
Alp Mestanogullari
ad0c6521ed canonicalize API type before generating jquery functions, flattening everything on the way 2015-03-09 22:54:41 +01:00
Alp Mestanogullari
8428e4bd7b fix dumb error 2015-03-09 19:59:25 +01:00
Alp Mestanogullari
5f7795f70f remove canonicalize, it's now in servant 2015-03-09 19:23:53 +01:00
Alp Mestanogullari
6af9b9e70f add 'canonicalize' to canonicalize the api type under a Proxy 2015-03-09 19:23:26 +01:00
Alp Mestanogullari
9a33fa7812 Canonicalize the API type to make sure that the following 'law' holds: Server (a :> (b :<|> c)) ~ Server (a :> b) :<|> Server (a :> c) 2015-03-09 15:16:38 +01:00
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
Alp Mestanogullari
c08baabfdf Merge pull request #14 from haskell-servant/proper-errors
Use `ServantError` to report Errors instead of `String`
2015-03-09 09:02:59 +01:00
Timo von Holtz
74b5bc400c Allow more response codes without failing 2015-03-09 17:04:31 +11:00