Commit graph

1801 commits

Author SHA1 Message Date
Oleg Grenrus
454f53315f Remove catchServantError 2018-03-11 16:50:14 +02:00
Oleg Grenrus
80188e024e Add Servant.Client.Free 2018-03-11 14:13:25 +02:00
Oleg Grenrus
bcca635151
Merge pull request #919 from emmanueltouzery/aeson-1.3
relax the aeson constraint, allow 1.3.0.0
2018-03-10 23:36:17 +02:00
Emmanuel Touzery
7423ca3924 relax the aeson constraint, allow 1.3.0.0, fixes https://github.com/fpco/stackage/issues/3337 2018-03-09 20:26:03 +01:00
Oleg Grenrus
c767efedb9
Merge pull request #917 from phadej/travis-max-backjumps
Add --max-backjumps to .travis.yml
2018-03-08 14:43:16 +02:00
Oleg Grenrus
52f27de256 Add --max-backjumps to .travis.yml 2018-03-08 13:18:47 +02:00
Alp Mestanogullari
c1414478c6
Merge pull request #908 from haskell-servant/paremeter-stream-tutorial
Fix typo in tutorial
2018-02-23 13:47:59 +01:00
Oleg Grenrus
3e1748c965 Add description modifier helpers and parametrise Capture 2018-02-15 12:28:42 +02:00
Alp Mestanogullari
6ed48b742c
Fix typo in tutorial 2018-02-15 09:59:21 +01:00
Oleg Grenrus
e8e62d6d99
Merge pull request #901 from phadej/changelog-0.13
Add changelog and bump versions
2018-02-08 15:50:22 +02:00
Oleg Grenrus
56a72d7d48 Add changelog and bump versions 2018-02-08 15:17:48 +02:00
Oleg Grenrus
4d3893885d
Merge pull request #900 from phadej/resourcet-1.2
Support resourcet-1.2
2018-02-08 12:16:13 +02:00
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