Commit graph

2164 commits

Author SHA1 Message Date
Daniel Larsson
409a10442d Added test cases for matrix parameters. Added some missing cases in the IsElem type family (QueryParams and QueryFlag) 2015-01-04 18:14:27 +01:00
Alp Mestanogullari
3dc9424765 add a changelog, bump version to 0.2.2 2015-01-04 17:41:51 +01:00
Alp Mestanogullari
44efc7ff20 bump version 2015-01-04 17:18:40 +01:00
Alp Mestanogullari
b7591dd7e0 mention servant-pandoc in the readme 2015-01-04 17:18:12 +01:00
Alp Mestanogullari
923a75afef add a changelog 2015-01-04 17:17:57 +01:00
Alp Mestanogullari
07472ccb7a update the example to show off multiple-responses 2015-01-04 16:53:02 +01:00
Alp Mestanogullari
71142b08d4 fix build error 2015-01-04 16:44:23 +01:00
Alp Mestanogullari
0edde415bd first shot (doesn't build though) at multiple responses in the docs 2015-01-04 16:38:50 +01:00
Julian K. Arni
0cc4f975cc Bump version to 0.2.3 2015-01-04 16:26:33 +01:00
Julian K. Arni
1ec9d0a497 Add CHANGELOG. 2015-01-04 16:21:25 +01:00
Julian Arni
3ac502c803 Merge pull request #3 from haskell-servant/jkarni/servant-issue-2
Memoize requestBody IO action.
2015-01-04 16:12:49 +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
b93ff6c21c Merge pull request #5 from mpickering/patch-1
Expose "headers" lens
2015-01-03 17:20:17 +01:00
Matthew Pickering
e333ed5ff6 Expose "headers" lens
All other lenses for `Action` are exposed. Without it, it is impossible to access the headers field.
2015-01-03 16:11:09 +00:00
Julian Arni
1e6fbd111d Merge pull request #4 from zerobuzz/test-case-for-servant-issue-3
This test case reproduces servant issue #3.
2015-01-03 00:51:18 +01:00
Alp Mestanogullari
aaf448f3fe This test case reproduces servant issue #3. 2015-01-02 23:19:45 +01:00
Alp Mestanogullari
174a4253fe Merge pull request #4 from paf31/slashes
Add missing slash character in generated docs.
2015-01-02 19:35:01 +01:00
Phil Freeman
43f9aa78c0 Represent path as [String] 2015-01-02 10:06:34 -08:00
Julian Arni
7f1792be62 Merge pull request #4 from haskell-servant/jkarni/issue2
Fix top-level raw code-gen issue.
2015-01-02 10:58:24 +01:00
Julian K. Arni
8dfb3294b8 Fix top-level raw code-gen issue. 2015-01-02 10:46:21 +01:00
Daniel Larsson
8aba885488 Added support for matrix parameters. 2015-01-01 23:43:29 +01:00
Daniel Larsson
6f10662887 Initial support for matrix parameters. Not complete, not sure how to document them yet, since documentation is focused on endpoints, not individual path fragments. 2015-01-01 23:42:06 +01:00
Daniel Larsson
80b82fd885 Bumped version number, and added a .gitignore file. 2015-01-01 22:46:58 +01:00
Alp Mestanogullari
924c805db4 Merge pull request #2 from mpickering/patch-1
Complete code example in Servant.Server
2015-01-01 21:21:25 +01:00
Matthew Pickering
77aed79eba Complete code example in Servant.Server 2015-01-01 20:10:17 +00:00
Alp Mestanogullari
f670667904 Merge pull request #3 from paf31/ignore
Add .gitignore file which ignore sandbox files
2015-01-01 15:41:27 +01:00
Daniel Larsson
83afdcb96b Declared query string parameters are always sent in requests, even when no value is assigned to them (?name). The server handles a missing query parameter, and a query parameter with no value the same, but to be consistent with the documentation ("If you give Nothing, nothing will be added to the query string.") I made a small change to avoid sending empty query parameters. Also the value and req' parameters were flipped in the lambda in the QueryParams case. 2015-01-01 15:14:07 +01:00
Phil Freeman
42fc048dfc Add missing slash character in generated docs. 2014-12-31 17:19:35 -08:00
Phil Freeman
17569a31b6 Add .gitignore file which ignore sandbox files 2014-12-31 17:18:23 -08:00
Daniel Larsson
fe541f3bf4 Added support for matrix parameters 2014-12-28 22:56:58 +01:00
Alp Mestanogullari
fb153d4e08 Merge pull request #3 from haskell-servant/jkarni/issue1
Fix dot in function name issue.
2014-12-24 14:02:47 +01:00
Julian K. Arni
58b27cd957 Fix dot in function name issue. 2014-12-24 13:55:25 +01:00
Julian Arni
87b7c8e376 Merge pull request #1 from haskell-servant/jkarni/encodePretty
Switch to encodePretty in sampleByteString.
2014-12-20 22:09:28 +01:00
Julian K. Arni
3898c19afe Switch to encodePretty in sampleByteString. 2014-12-20 21:58:07 +01:00
Alp Mestanogullari
df5c8d9843 guard against failures with old versions of 'either' 2014-12-19 18:26:03 +01:00
Alp Mestanogullari
0fea0ddbf9 expose Servant.Server.Internal, useful when we define our own combinators externally 2014-12-19 18:15:21 +01:00
Alp Mestanogullari
7ea1203c8b Merge pull request #2 from spl/patch-1
Fix typo
2014-12-13 00:40:49 +01:00
Sean Leather
4a89f5d6c7 Fix typo 2014-12-12 21:04:03 +02:00
Alp Mestanogullari
14a2750411 update README to refflect the servant/servant-server split 2014-12-12 10:39:08 +01:00
Alp Mestanogullari
fbc012c348 adapt to servant/servant-server split, prepare release 2014-12-10 16:51:05 +01:00
Alp Mestanogullari
2d2c46ea12 adapt to the servant/servant-server split 2014-12-10 16:43:43 +01:00
Alp Mestanogullari
824c56ff22 prepare for release 2014-12-10 16:39:40 +01: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
Alp Mestanogullari
d106989d62 adapt to the servant/servant-server split, prepare new release 2014-12-10 16:29:50 +01:00
Alp Mestanogullari
e43532b71d first shot at a server package 2014-12-10 16:10:57 +01:00
Alp Mestanogullari
741da9fde1 Merge pull request #1 from haskell-servant/jkarni/cleaner-haddock
Clean up QQ and Utils.Links haddock.
2014-12-10 10:43:44 +01:00