Commit b05b33f
committed
www/hs-servant-server: update to servant-server-0.20.2
0.20.2
----
- Fix build of examples/greet.hs. Add "429 Too Many Requests" error. [#1591](haskell-servant/servant#1591)
- Full query string helpers [#1604](haskell-servant/servant#1604)
This involves a new instance `HasServer (QueryString :> api) context`.
- Add `MkHandler` pattern synonym [#1732](haskell-servant/servant#1732) [#1733](haskell-servant/servant#1733)
Add a bidirectional pattern synonym to construct `Handler a` values from `IO
(Either ServerError a)` ones, and match in the other direction.
- Add instance `HasServer (EmptyAPI :> api) context` [#1775](haskell-servant/servant#1775)
- Bugfix - CaptureAll produces [""] for empty paths due to trailing slash. [#1243](haskell-servant/servant#1243) [#1516](haskell-servant/servant#1516)
CaptureAll resulted in `[""]` for empty paths due to trailing slash. Similar
oddities occurred around these edge cases like `"/"` resulted in `[]` correctly,
but `"//"` resulted in `["", ""]`. This patch simply eliminates the first `""`
in the pathinfo list as taken from the wai response. This might break user
code that relies on personal shims to solve the problem, however simply removing their
workarounds should fix their code as the behavior is now sane.1 parent 0ec87fa commit b05b33f
3 files changed
Lines changed: 15 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 15 | | |
25 | 16 | | |
| 17 | + | |
| 18 | + | |
26 | 19 | | |
27 | 20 | | |
28 | 21 | | |
29 | 22 | | |
30 | | - | |
31 | 23 | | |
32 | | - | |
33 | 24 | | |
34 | | - | |
35 | 25 | | |
36 | 26 | | |
37 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | 12 | | |
15 | 13 | | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | | - | |
23 | 21 | | |
24 | | - | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments