Commit graph

2429 commits

Author SHA1 Message Date
Oleg Grenrus
f9963d32ff Bump lower bounds in rest of packages 2018-01-25 17:17:35 +02:00
Oleg Grenrus
0ae673583b Bump lower bounds in servant
- `text` is already 1.2.3.0 as https://github.com/fpco/stackage/issues/3147
  is resolved AFAICS

- `http-types` bound is surprisingly low due:
  https://github.com/fpco/stackage/issues/2976
2018-01-25 15:06:14 +02:00
Oleg Grenrus
bf289ccd59
Merge pull request #873 from phadej/modifiers
Servant.API.Modifiers
2018-01-25 11:12:14 +02:00
Oleg Grenrus
bc3f61d615 Add Servant.API.Modifiers to servant
Changes Header, ReqBody and QueryParam to take a modifier list.

Resolves https://github.com/haskell-servant/servant/issues/856

ResponseHeader story turns to be somewhat ugly, but it can be made
elegant when https://github.com/haskell-servant/servant/issues/841 is
implemnted, then we can omit HList aka Header Heterogenous List
implementation.

- servant-server changes:

  Writing server side intepretations is quite simple using
  `unfoldRequestArgument`, which makes Header and QueryParam look quite
  the same.

  `ReqBody` cannot be easily made optional with current design (what that
  would mean: No Content-Type Header?), so that dimensions isn't used
  there.

- Add HasLink for all the rest ComprehensiveAPI combinators
- Add 'tricky' Header', QueryParam' endpoints to ComprehensiveAPI
- servant-docs: Quick'n'dirty implementation. Don't use modifiers information (yet).
2018-01-25 09:10:11 +02:00
Oleg Grenrus
0a50e7582e
Merge pull request #893 from phadej/issue-887-type-error-servant-server-instances
Add two HasServer instances which won't ever exist
2018-01-22 19:48:46 +02:00
Oleg Grenrus
6533d4bee5 Void -> TypeError
This doesn't work on GHC-8.0. I have trouble finding a ticket though.
See
https://ghc.haskell.org/trac/ghc/wiki/Proposal/CustomTypeErrors#DesignquestionsRAE
2018-01-22 18:40:23 +02:00
Oleg Grenrus
43895c83f9 Add two HasServer instances which won't ever exist
Resolves https://github.com/haskell-servant/servant/issues/887
2018-01-20 18:35:57 +02:00
Oleg Grenrus
71bed63933
Merge pull request #891 from phadej/one-stack-yaml
Leave only single stack.yaml
2018-01-18 11:18:35 +02:00
Oleg Grenrus
389914b50d Leave only single stack.yaml 2018-01-18 09:50:02 +02:00
Oleg Grenrus
6c721bd017
Merge pull request #889 from mgsloan/remove-default-extensions
Remove usage of default exts, now "stack ghci" loads all packages together
2018-01-18 09:27:58 +02:00
Alp Mestanogullari
345dc8a1bd
Merge pull request #890 from mgsloan/kinder-type-checking
Kinder type checking
2018-01-18 08:25:26 +01:00
Michael Sloan
e38892a084 Remove usage of default exts, now "stack ghci" loads all together 2018-01-17 21:16:38 -08:00
Michael Sloan
7e0ad51b62 Use (a :: *) on phantom type variables for kinder type checking #887 2018-01-17 21:16:21 -08:00
Oleg Grenrus
a6cd6fcdc4
Merge pull request #892 from phadej/fix-travis-2018-01-17
Fix travis, disallow memory-0.14.12
2018-01-18 00:46:43 +02:00
Oleg Grenrus
98a12c328b Reinstate cookbook testing to CI 2018-01-18 00:21:13 +02:00
Oleg Grenrus
3c7e7775fe Fix travis, disallow memory-0.14.12
Also remove duplicate bug-reports field
2018-01-17 20:33:49 +02:00
Oleg Grenrus
2dc48f0684
Merge pull request #885 from phadej/travis-2018-01-05
Regenerate .travis.yml
2018-01-05 12:11:08 +02:00
Oleg Grenrus
816b7115f9 Regenerate .travis.yml 2018-01-05 10:33:10 +02:00
Alp Mestanogullari
0147f4b5c7
Merge pull request #882 from ilya-murzinov/docs-another-monad
Added new cookbook recipe for using custom monad
2017-12-29 12:51:44 +01:00
Ilya Murzinov
f1911f390d Added new cookbook recipe for using custom monad 2017-12-29 13:22:32 +03:00
Alp Mestanogullari
bba8cecf9f
Merge pull request #875 from kakkun61/improve-authentication-docs
Improve authentication docs
2017-12-28 15:01:51 +01:00
Oleg Grenrus
68bc41b41d
Merge pull request #867 from haskell-servant/cookbook
[Docs] Cookbook
2017-12-27 14:11:52 +02:00
Alp Mestanogullari
8e0cb615ad cookbook projects: add (lower) bounds for non servant deps 2017-12-27 01:33:12 +01:00
Oleg Grenrus
cded17e079 Update changelog 2017-12-18 19:55:36 +02:00
Oleg Grenrus
ddbf169909
Merge pull request #878 from phadej/issue-835-link-double-escape
Fix #835. Use Escaped to prevent double-escaping
2017-12-18 19:51:55 +02:00
Oleg Grenrus
71425ab23c Fix #835. Use Escaped to prevent double-escaping 2017-12-18 19:23:31 +02:00
Kazuki Okamoto
4b9d60ca8d fix compilation error: move import declaration and add cookie to dependencies 2017-12-13 16:52:44 +09:00
Alp Mestanogullari
40c1315097 elide some of the servant README in file upload example output 2017-12-12 19:57:21 +01:00
gbaz
7edd35c9f0 docs for streaming (#852)
* docs for new streaming related combinators
2017-12-11 21:32:17 +01:00
Oleg Grenrus
6fe2c78567
Merge pull request #872 from phadej/http-types-0.11
Http types 0.11
2017-12-10 14:55:25 +02:00
Oleg Grenrus
ccf0056f64 Regenerate .travis.yml 2017-12-10 14:27:40 +02:00
Oleg Grenrus
8f62f81ed9 Allow http-types-0.11 and hspec-wai-0.9 2017-12-10 13:27:45 +02:00
Alp Mestanogullari
c5f2b9e175 add https recipe, add (future) github links at the end of all recipes 2017-12-08 23:44:48 +01:00
Alp Mestanogullari
6075700ebc add a recipe about 'structuring APIs' in general 2017-12-08 23:44:48 +01:00
Alp Mestanogullari
5ac6de8277 add file upload recipe 2017-12-08 23:44:48 +01:00
Alp Mestanogullari
6dc9d04e60 build cookbook projects in CI 2017-12-08 23:44:47 +01:00
defanor
b8c6c0b7c7 Add a cookbook recipe for JWT and basic authentication combination (#871) 2017-12-08 23:44:47 +01:00
Alp Mestanogullari
c8dbcea5a2 add shell.nix for building servant (+ tutorial + cookbook, optionally) 2017-12-08 23:44:38 +01:00
Alp Mestanogullari
e2314aa059 add cookbook recipe for using a PostgreSQL connection pool 2017-12-08 23:44:38 +01:00
Alp Mestanogullari
8543e00aaa add a cookbook recipe for sqlite. cabalized cookbook examples. 2017-12-08 23:44:38 +01:00
Oleg Grenrus
f3470c2d96
Merge pull request #869 from cocreature/ghcjs-upperbound
Bump servant-client-core upperbound in servant-client-ghcjs
2017-12-05 19:30:08 +02:00
Alp Mestanogullari
606a4a6f69 add a cookbook section to docs, with a first 'recipe' about basic auth 2017-12-05 18:09:41 +01:00
Moritz Kiefer
544bb8184e Bump servant-client-core upperbound in servant-client-ghcjs 2017-12-05 15:32:58 +01:00
Oleg Grenrus
802123f35d
Merge pull request #868 from phadej/servant-foreign-0.11
Bump servant-foreign for 0.11
2017-12-05 16:06:36 +02:00
Oleg Grenrus
30f12a7091 Add temporary constraints to fix Travis.
Revert me when cryptonite issue is resolved!
2017-12-05 15:31:13 +02:00
Oleg Grenrus
cbd3862f24
Merge pull request #836 from gbaz/gb-streaming
Stream endpoint support for servant
2017-12-03 17:19:47 +02:00
Oleg Grenrus
13986429ef
Merge pull request #818 from LumiGuide/feat-client-ghcjs
servant-client-ghcjs
2017-12-03 17:19:15 +02:00
Oleg Grenrus
288e786f18 Bump servant-foreign for 0.11 2017-12-01 23:28:37 +02:00
Dimitri Sabadie
c1371dd84d Temporary fix for Header. (#843)
servant-foreign: make foreign client Header arguments have the representation of 'Maybe' in those languages
2017-11-27 00:23:55 +01:00
Oleg Grenrus
6321859b63
Merge pull request #861 from joenash/patch-1
Minor md fix for table rendering
2017-11-12 01:15:50 +02:00