Commit graph

2383 commits

Author SHA1 Message Date
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
Timo von Holtz
07d84d019c Tests for all reported errors 2015-03-09 14:42:07 +11:00
Timo von Holtz
23311a8f5d Some tests for errors 2015-03-09 14:42:07 +11:00
Timo von Holtz
fe6962d0b9 Adjust existing tests for change in error type 2015-03-09 14:42:07 +11:00
Timo von Holtz
8015906b53 Record accessors for ServantError 2015-03-09 14:42:07 +11:00
Timo von Holtz
ba46ecc0a9 Use ServantError to report Errors instead of String 2015-03-09 14:42:07 +11:00
Julian Arni
83aff1495b Merge pull request #13 from haskell-servant/manager-ioref
Use an `IORef` rather than a `MVar`.
2015-03-09 00:23:36 +01:00
Alp Mestanogullari
947815e6d3 Merge pull request #31 from haskell-servant/wip-incorrect-error
Change JSON-specific error message to a more general one
2015-03-05 18:56:16 +01:00
Christian Marie
0be89b4f3d Change JSON-specific error message to a more general one 2015-03-05 12:11:20 +11:00
Timo von Holtz
449b3758f0 Changelog for MVar-change 2015-03-05 10:36:34 +11:00