Commit Graph

604 Commits

Author SHA1 Message Date
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
Timo von Holtz
aeb1136658 Use an IORef rather than a MVar.
The job of a manager is to synchronize threads, so it is not necessary to block.
2015-03-05 09:49:15 +11:00
Alp Mestanogullari
84f8f814c7 add a changelog entry for the content-type aware instances 2015-03-04 11:19:51 +01:00
Julian Arni
af8e395664 Merge pull request #9 from anchor/content-types
Code changes to support Jkarni/content types.
2015-03-04 11:10:20 +01:00
Alp Mestanogullari
eb87b00b0d prepare changelog for next version 2015-03-04 02:07:13 +01:00
Alp Mestanogullari
229bfc3a57 prepare changelog for next version 2015-03-04 02:02:13 +01:00
Alp Mestanogullari
1af0d7b5ab tentative changelog 2015-03-04 01:59:17 +01:00
Alp Mestanogullari
b24822a448 tentative changelog 2015-03-04 01:53:40 +01:00
Alp Mestanogullari
13dcf081a7 tentative CHANGELOG 2015-03-04 01:47:47 +01:00
Christian Marie
cf1a7aeb9c Merge pull request #21 from anchor/expose-form-urlencoded
Expose FormUrlEncoded through Servant.API
2015-03-04 09:17:58 +11:00
Timo von Holtz
07cd4f65d6 Expose FormUrlEncoded through Servant.API 2015-03-04 09:04:21 +11:00
Timo von Holtz
2c2a2fcb54 Extend tests with more content types 2015-03-04 08:59:36 +11:00
Roland Schatz
f7af3b14d2 Introduce ServerT to specify generic handlers. 2015-03-02 22:23:56 +01:00
Julian K. Arni
b7131b45c4 Use github servant-server. 2015-03-02 15:56:02 +01:00
Julian Arni
4602225f60 Merge pull request #19 from haskell-servant/jkarni/integrate-doctests
Cleanup, including:
2015-03-02 15:27:14 +01:00
Julian Arni
5f6c981d80 Merge pull request #29 from zerobuzz/export-toApplication-fun
Export `toApplication` from Server.
2015-02-27 15:41:52 +01:00
Matthias Fischmann
27e842365f Remove overly specific comment. 2015-02-27 15:27:35 +01:00
Matthias Fischmann
1a63d8797a Export toApplication from Server. 2015-02-27 14:54:53 +01: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 Arni
33279c525d Merge pull request #11 from anchor/content-types
Content types
2015-02-25 13:25:10 +01:00
Julian Arni
8cac6c6bb3 Merge pull request #18 from haskell-servant/jkarni/decodeLenient
Use lenient decoding for JSON.
2015-02-25 13:09:07 +01:00
Julian K. Arni
1a200f1c48 Use lenient decoding for JSON. 2015-02-25 12:48:15 +01:00
Timo von Holtz
da0e1ca871 Extend tests and clean up 2015-02-25 09:56:06 +11:00
Timo von Holtz
40a941e0e3 Don't ignore the content-type in ReqBody 2015-02-25 09:30:31 +11:00
Julian Arni
cae0b6e252 Merge pull request #13 from haskell-servant/jkarni/content-types
Jkarni/content types
2015-02-24 15:01:46 +01:00
Julian K. Arni
b96a2d214d Pay down some coverage debt 2015-02-24 14:48:17 +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