Commit graph

2449 commits

Author SHA1 Message Date
Maxim Koltsov
57f0b0b390
Make error messages from combinators configurable
Currently there is no way for Servant users to customize formatting of
error messages that arise when combinators can't parse URL or request
body, apart from reimplementing those combinators for themselves or
using middlewares.

This commit adds a possibility to specify custom error formatters
through Context.

Fixes #685
2020-07-17 17:10:31 +03:00
fisx
1f1f7f309a
Merge pull request #1318 from haskell-servant/ghc_810
Ghc 810
2020-07-03 08:12:40 +02:00
Matthias Fischmann
eaadc9ec1f
Relax upper bound for aeson. 2020-07-03 06:57:52 +02:00
Leif Warner
e3c4f5d85e
Bump doctest version used for ghc 8.10.1 2020-07-03 06:57:52 +02:00
Leif Warner
7ddc2e7b9e
Add GHC 8.10.1 to .travis.yml build. 2020-07-03 06:57:52 +02:00
Leif Warner
0530671ad6
Allow newer versions of base, template-haskell, lens, & unliftio-core 2020-07-03 06:57:52 +02:00
fisx
7f4ae61a01
Merge pull request #1310 from Taneb/knownstatus
Add KnownStatus typeclass
2020-06-13 17:02:41 +02:00
Nathan van Doorn
ff9da1cde4 Use GHC.TypeLits rather than TypeNats 2020-06-13 15:50:12 +01:00
Nathan van Doorn
6889d053c7 Add FlexibleInstances for earlier GHCs 2020-06-13 15:38:36 +01:00
Nathan van Doorn
a8184a2ee0 Add KnownStatus typeclass 2020-06-13 15:10:07 +01:00
Felix Yan
4b225c23d7
Allow aeson 1.5 in all components (#1309) 2020-06-12 15:02:39 -04:00
Felix Yan
c778a18372
Allow aeson 1.5 (#1302)
Builds fine and all tests pass here.
2020-06-12 02:38:09 -04:00
Jan Hrcek
8e7b538921
More cookbook improvements (#1305)
* Simplify code in CurlMock cookbook recipe

* Link to latest versions of packages on hackage

* Fix grammar in the OpenIdConnect recipe

* HasForeignType -> HasForeign
2020-06-10 12:36:23 -04:00
Jan Hrcek
b9d8fbcdc1
Fix typos and grammar (#1304)
* Fix typos and grammar

* Remove redundant words, fix articles

* More language fixes

* More typo fixes and resolve TODO about missing links
2020-06-06 00:43:51 -04:00
Teymour Aldridge
67cb564aef
Update README.md (#1300)
Grammatical fix to documentation
2020-06-06 00:30:16 -04:00
David Johnson
85599b944c
Build servant repo with nix. (#1288) 2020-06-06 00:04:32 -04:00
Domen Kožar
e7bdd097bd
Merge pull request #1287 from tfausak/patch-2
Allow lens 4.19
2020-04-29 21:39:42 +02:00
Domen Kožar
e05ac51c8f
Merge pull request #1286 from felixonmars/patch-2
Allow QuickCheck 2.14
2020-04-29 21:39:26 +02:00
Domen Kožar
40ac6fb080
Merge pull request #1293 from felixonmars/patch-3
Allow base64-bytestring 1.1
2020-04-29 21:39:01 +02:00
Felix Yan
a221320f5a
Allow base64-bytestring 1.1
Builds fine and all tests pass here.
2020-04-26 11:35:01 +08:00
Taylor Fausak
6bd3ee80ca
Allow lens 4.19
https://github.com/ekmett/lens/blob/v4.19.1/CHANGELOG.markdown
2020-04-05 12:15:30 -04:00
Felix Yan
8f60a02c25
Allow QuickCheck 2.14
Builds fine and all tests pass.
2020-04-02 06:58:22 +08:00
Oleg Grenrus
567eb733d2
Merge pull request #1279 from theophile-fl/docs/improve-genericServerT
docs(generic): Improve the documentation for `genericServerT`
2020-03-04 18:23:38 +02:00
Théophile Choutri
b3b3dc9f41 docs(generic): Improve the documentation for genericServerT
This commit adds an explanation and a link to the Servant Cookbook
to `genericServerT`.

Moreover, the `genericServer` and `genericServe`'s haddocks are
slightly edited to add a missing 'a'.
2020-03-04 15:53:37 +01:00
Oleg Grenrus
5998429e81
Merge pull request #1269 from haskell-servant/drop-allow-newer
Drop most allow-newer in cabal.project
2020-01-24 13:17:15 +02:00
Oleg Grenrus
7916051114 Drop most allow-newer in cabal.project
Dependencies are updated to allow servant-0.17
2020-01-24 12:54:40 +02:00
Oleg Grenrus
c15f550e1f Incorrect lower bound in servant-server 2020-01-23 22:26:02 +02:00
Oleg Grenrus
b30286312f Fix typo in servant-docs changelog 2020-01-23 14:10:20 +02:00
Oleg Grenrus
74aa1d52ec
Merge pull request #1268 from haskell-servant/version-0.17
Bump version to 0.17
2020-01-23 13:58:03 +02:00
Oleg Grenrus
b318e69bff Flush changelog-d 2020-01-23 13:43:46 +02:00
Oleg Grenrus
b519014f96 Update other changelogs 2020-01-23 13:43:19 +02:00
Oleg Grenrus
8fc47edf99 Remove deprecated modules (end of 2019 is passed) 2020-01-23 13:14:24 +02:00
Oleg Grenrus
3bf4b100a8 Bump version to 0.17 2020-01-23 12:50:07 +02:00
Oleg Grenrus
837243631d
Merge pull request #1266 from haskell-servant/ghc-8.8.2
Use GHC-8.8.2 on Travis
2020-01-21 18:20:26 +02:00
Oleg Grenrus
d29b0cc8f1 Use GHC-8.8.2 on Travis 2020-01-21 16:52:20 +02:00
Oleg Grenrus
cc1e921824
Merge pull request #1264 from haskell-servant/remove-jsaddle
Remove servant-jssadle (moved to own repository)
2020-01-10 02:25:39 +02:00
Oleg Grenrus
21e6000b09 Remove servant-jssadle (moved to own repository) 2020-01-10 01:20:48 +02:00
Oleg Grenrus
831f46ab78
Merge pull request #1263 from haskell-servant/build-type-simple
Change build-type: Simple; run doctests on CI via haskell-ci
2020-01-10 01:18:39 +02:00
Oleg Grenrus
524b07224f Change build-type: Simple; run doctests on CI via haskell-ci
Don't use hspec-discover in tutorial,
so doctests work on CI
2020-01-10 01:07:31 +02:00
Oleg Grenrus
ec0cd8a947
Merge pull request #1262 from haskell-servant/rawQueryString
Refactor of #1249
2020-01-09 20:12:45 +02:00
Ilia Rodionov
40582c40e4 add query rewriting tests and changelog item
add prs: #1249

add ps1249 changelog item
2020-01-09 15:08:24 +02:00
Ilia Rodionov
28c4533659 use queryString not rawQueryString, enables param rewrites with Middleware possible 2020-01-09 14:43:14 +02:00
Oleg Grenrus
b4e5aa0def Add 1247 to documentation updates changelog 2019-12-19 13:16:04 +02:00
Alp Mestanogullari
00d9b60796
Merge pull request #1254 from natsuki14/patch-1
I guess some sample curl commands are wrong.
2019-12-19 07:53:54 +01:00
Oleg Grenrus
9536f1d853
Merge pull request #1258 from haskell-servant/pr-1247
PR 1247
2019-12-15 18:23:23 +02:00
Matthias Heinzel
069d087874 Fix compilation warnings 2019-12-15 17:04:06 +02:00
Oleg Grenrus
544487d15a Update stack.yaml to resolver lts-14.17 2019-12-15 16:05:09 +02:00
Oleg Grenrus
4ece88e4d9
Merge pull request #1257 from haskell-servant/warp-3.3b
Allow warp-3.3 in master
2019-12-15 12:47:23 +02:00
Oleg Grenrus
f7d5c0149f Allow warp-3.3 in master 2019-12-15 01:57:29 +02:00
Oleg Grenrus
0215b60403
Merge pull request #1256 from haskell-servant/update-changelog-sofar
Go through changelog entries so far
2019-12-15 01:07:39 +02:00