Commit Graph

25 Commits

Author SHA1 Message Date
Alp Mestanogullari
fc30c7e242 Merge branch 'master' into canonical-types
Conflicts:
	CHANGELOG.md
	src/Servant/Server/Internal.hs
2015-04-19 10:59:14 +02: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
Roland Schatz
f76c729a08 Introduce ServerT to specify generic handlers. 2015-03-11 14:33:51 +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
5f7795f70f remove canonicalize, it's now in servant 2015-03-09 19:23:53 +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
Christian Marie
0be89b4f3d Change JSON-specific error message to a more general one 2015-03-05 12:11:20 +11:00
Roland Schatz
f7af3b14d2 Introduce ServerT to specify generic handlers. 2015-03-02 22:23:56 +01:00
Julian K. Arni
81c3589624 Review fix 2015-02-24 14:08:27 +01:00
Julian K. Arni
0789682cf8 Remove ContentTypes.hs 2015-02-24 14:08:27 +01:00
Julian K. Arni
e9f3341b9e Move more Content-type logic back to servant. 2015-02-24 14:08:27 +01:00
Julian K. Arni
2092ddc201 Charset test fixes. 2015-02-24 14:08:27 +01:00
Julian K. Arni
8028cceee7 ReqBody content types. 2015-02-24 14:08:27 +01:00
Julian K. Arni
380acb3efa Add Accept header handling. 2015-02-24 14:07:00 +01:00
Timo von Holtz
9a3c268be4 Add PATCH method 2015-02-10 11:33:41 +11:00
Thomas Sutton
6b55bf583d Add RouteMismatch constructor for arbitrary HTTP response code 2015-01-30 11:36:01 +11:00
Phil Freeman
56791952b8 Return JSON error messages in response 2015-01-19 19:12:08 -08:00
Daniel Larsson
b18f27df7a Added support for Matrix parameters 2015-01-15 12:10:21 +01:00
Matthias Fischmann
2f9c6340c4 Explicit imports in /src. 2015-01-06 17:25:25 +01:00
Matthias Fischmann
9b8d25c838 Ignore redundant trailing slashes (with test case). 2015-01-05 14:27:06 +01:00
Julian K. Arni
b43301967d Update reqBodyRef comment. 2015-01-04 16:08:22 +01:00
Julian K. Arni
726848b8a3 Add comment about what the bug was. Make ReqBodyState strict. 2015-01-03 18:18:40 +01:00
Julian K. Arni
ecb1da0e37 Cycle through ByteString. 2015-01-03 18:08:25 +01:00
Julian K. Arni
83f55259fa Memoize requestBody IO action. 2015-01-03 18:08:25 +01:00
Alp Mestanogullari
e43532b71d first shot at a server package 2014-12-10 16:10:57 +01:00