Commit graph

1689 commits

Author SHA1 Message Date
Oleg Grenrus
77600e661b Support resourcet-1.2 2018-02-08 11:27:38 +02:00
Oleg Grenrus
f5ffdc7fbd
Merge pull request #899 from phadej/response-body-refactor
Refactor servant-client-core Response+StreamingResponse
2018-02-06 11:33:36 +02:00
Oleg Grenrus
f4fc2b321f Refactor servant-client-core Response+StreamingResponse 2018-01-31 09:26:28 +02:00
Oleg Grenrus
ff268941a1
Merge pull request #898 from phadej/http-types-0.12
Bump lower bound of http-types >= 0.12
2018-01-30 12:51:59 +02:00
Oleg Grenrus
c55b778d8e Bump lower bound of http-types >= 0.12
- WIP: pending http-api-data release
- TODO: remove MIN_VERSION_http_types
- There have been 3 major releases of http-types:
  - 0.10 change name of variable
  - 0.11 lowercase escaped URIs
  - 0.12 uppercase escaped URIs
- It's easier for us to support only latest, migration from 0.9/0.10 to 0.12
  is trivial for the downstream. 0.11 may cause semantic (non-type-error) breakage somewhere.

Also allow lens-4.16, remove MIN_VERSION_http_types conditionals, and
update `stack.yaml`
2018-01-30 11:29:25 +02:00
Oleg Grenrus
f1baef61d8
Merge pull request #897 from phadej/pull-883-cookie
Support http-client’s CookieJar in servant-client
2018-01-29 08:09:21 +02:00
Oleg Grenrus
8cab121fdf
Merge pull request #896 from phadej/hlint
Update hlint.yaml and fix some hints in servant and servant-server
2018-01-28 16:54:17 +02:00
Michal Rus
e4bd07a907 Support http-client’s CookieJar in servant-client 2018-01-26 18:45:52 +02:00
Oleg Grenrus
22ec980f6e Update hlint.yaml and fix some hints in servant and servant-server 2018-01-26 17:38:57 +02:00
Oleg Grenrus
030cbbc363
Merge pull request #895 from phadej/lower-bounds
Bump lower bounds
2018-01-25 18:42:11 +02:00
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