Maxim Koltsov
4332a2a9e4
Remove allow-newer for postgresql-simple
...
Upstream has released updated versions.
2022-10-31 21:38:21 +01:00
Maxim Koltsov
58aa0d1c0c
Merge pull request #1621 from haskell-servant/maksbotan/version-up
...
Version up for servant, servant-server
2022-10-28 01:26:00 +03:00
Maxim Koltsov
18bc2cf314
Version up for servant, servant-server
2022-10-27 21:26:36 +02:00
Maxim Koltsov
d5b9cbf634
Merge pull request #1592 from TeofilC/ghc-9.4
...
Support GHC-9.4
2022-10-27 22:14:26 +03:00
Teo Camarasu
ff135e868b
Add flags to cabal.project to allow building with GHC-9.4
2022-10-27 13:05:51 +01:00
Teo Camarasu
86c61c6dbd
Update doctest to be compatible with newer GHC
2022-10-27 13:05:51 +01:00
Teo Camarasu
3f6886ad2d
Bump depedency bounds
2022-10-27 13:05:38 +01:00
Teo Camarasu
53c132173c
Bump http-api-data bounds
2022-10-27 13:05:05 +01:00
Teo Camarasu
a445fbafd6
Use CPP to avoid errors with old GHC from TypeApplications in class instance
2022-10-27 13:05:05 +01:00
Teo Camarasu
52f76ea722
Add GHC-9.4 to workflow
2022-10-27 13:05:05 +01:00
Teo Camarasu
4627683a64
Fix TypeError for GHC-9.4
...
In GHC-9.4 the typechecker changed requiring more annotations in positions like this. See https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.4#ambiguous-types-containing-a-typeerror and https://gitlab.haskell.org/ghc/ghc/-/issues/21149
2022-10-18 10:45:21 +01:00
l-epple
e4650de303
Allow lens 5.2 ( #1607 )
2022-10-02 17:21:43 +02:00
Felix Yan
2323906080
Allow hspec 2.10 ( #1609 )
...
Builds fine and all tests pass.
2022-09-07 07:31:58 +02:00
Maxim Koltsov
f0e2316895
Merge pull request #1596 from haskell-servant/maksbotan/servant-auth-ghc9.2
...
servant-auth-swagger: allow base-4.16
2022-07-17 21:11:45 +03:00
Maxim Koltsov
43c57332dd
servant-auth-swagger: buildable on GHC 9
2022-07-17 20:48:52 +03:00
Maxim Koltsov
1833ef0d6e
servant-auth-swagger: allow base-4.16
2022-07-17 20:01:25 +03:00
Bart Schuurmans
489cbd59f4
servant-client: Run ClientEnv's makeClientRequest in IO ( #1595 )
...
* servant-client: Run ClientEnv's makeClientRequest in IO
* Add changelog.d entry for #1595
2022-07-01 13:25:13 +02:00
Ian Shipman
1fba9dc604
Only add a ? when query string is nonempty ( #1589 )
...
* Only add a ? when query string is nonempty
* Adds changelog entry
2022-05-16 16:50:10 +02:00
Gaël Deest
8ef5021a5f
Merge pull request #1588 from LightAndLight/master
...
Add HasSwagger instance for NamedRoutes
2022-05-13 07:41:12 +02:00
Tom Sydney Kerckhove
036102af58
Evaluate NoContent before (not) rendering it. ( #1587 )
...
* Evaluate NoContent before rendering it, so it shows up as covered in coverage reports
* failing test as well
* test that NoContent gets rendered if it is not an exception
Co-authored-by: Tom Sydney Kerckhove <syd@cs-syd.eu>
2022-05-04 14:40:26 +02:00
Isaac Elliott
59b5fe67cd
servant-swagger: clean up imports
2022-05-03 11:43:30 +10:00
Isaac Elliott
ae8e1e6003
servant-swagger: tag NamedRoutes endpoints with datatype name
2022-05-03 11:43:27 +10:00
Isaac Elliott
cb310b8294
servant-swagger: add HasSwagger instance for NamedRoutes
2022-05-03 11:43:16 +10:00
Julian Arni
5e1569e9e2
Merge pull request #1580 from haskell-servant/jkarni/servant-auth-io-keyset
...
Allow IO in JWTSettings' validationKeys
2022-04-23 18:17:00 -03:00
Julian K. Arni
4e8fb045e2
Review fix
2022-04-20 21:07:08 +02:00
Julian K. Arni
4cc714d654
Changelog entry
2022-04-20 21:07:08 +02:00
Julian K. Arni
3006e90126
Allow IO in JWTSettings' validationKeys
2022-04-20 21:07:08 +02:00
Gaël Deest
c48a6702b7
Merge pull request #1582 from haskell-servant/named-routes-servant-docs
...
Add support for NamedRoutes in servant-docs
2022-04-19 13:13:50 +02:00
Gaël Deest
9c81b4927a
Add support for NamedRoutes in servant-docs
2022-04-19 12:51:31 +02:00
Gaël Deest
117a2cc5e1
Merge pull request #1583 from haskell-servant/hspec-no-color
...
Disable hspec colored output in servant-swagger doctests
2022-04-19 12:41:15 +02:00
Gaël Deest
78280dc267
Disable hspec colored output in servant-swagger doctests
...
Colored output is the default since hspec 2.9.5.
This causes CI failures due to terminal escaping characters when running
the doctests on GitHub Actions.
2022-04-19 11:16:03 +02:00
Alp
c19ed0fb92
Major bound for servant-server's dependency on servant ( #1574 )
...
Reflecting a revision made on hackage for servant-server 0.19.1
2022-03-30 02:10:54 +02:00
Shea Levy
658585a7cd
Derive MonadMask for ClientM ( #1572 )
2022-03-26 17:03:01 +01:00
Gaël Deest
65de6f701c
Merge pull request #1556 from nbacquey/router_layout_captures
...
Display capture hints in router layout
2022-03-25 10:42:33 +01:00
Nicolas BACQUEY
a19cb84a0e
Update changelog
2022-03-24 16:43:27 +01:00
Nicolas BACQUEY
9d66e16706
Add spec for serverLayout
2022-03-23 14:30:45 +01:00
Nicolas BACQUEY
77b92d0d7d
Display capture hints in router layout
...
This commit introduces a `CaptureHint` type, which is passed as an extra
argument to the `CaptureRouter` and `CaptureAllRouter` constructors for
the `Router'` type.
`CaptureHint` values are then used in `routerLayout`, to display the
name and "type" of captured values (single or list), instead of just
"<capture>" previously.
N.B.:
Because the `choice` smart constructor for routers can aggregate
`Capture` combinators with different capture hints, the `Capture*Router`
constructors actually take a *list* of `CaptureHint`, instead of a
single one.
2022-03-23 14:30:45 +01:00
Maxim Koltsov
f5a91d20e1
Merge pull request #1568 from haskell-servant/maksbotan/stackage-deps
...
Allow hspec-2.9, lens-aeson-1.2
2022-03-22 23:43:22 +01:00
Maxim Koltsov
dd29f25f77
Allow lens-aeson 1.2
2022-03-22 23:22:02 +01:00
Maxim Koltsov
04f59c012b
Require servant-0.18.2 in servant-swagger
...
This version of servant adds Fragment, which servant-swagger adds
instance for.
2022-03-22 23:10:05 +01:00
Maxim Koltsov
256cec566f
Support hspec >= 2.9 in servant-swagger tests
2022-03-22 22:54:58 +01:00
Gaël Deest
276ca2ed01
Merge pull request #1569 from haskell-servant/url-encoding
...
Use toEncodedUrlPiece directly when encoding captures
2022-03-22 14:19:07 +01:00
Gaël Deest
c1c631eaff
Add changelog entry
2022-03-22 11:56:18 +01:00
Gaël Deest
0e051ccfdf
Merge pull request #1557 from ysangkok/janus/newer-stack
...
Use Stack 2.7.5, cleanup allow-newer/CI
2022-03-22 11:36:17 +01:00
Gaël Deest
658217b021
Use toEncodedUrlPiece directly when encoding captures
...
Current implementation of captures uses the `toUrlPiece` method from the
`ToHttpApiData` typeclass, and encodes the resulting `Text` using `toEncodedUrlPiece`
when appending to the request path.
The problem with this approach is that the instance for `Text` percent-encodes
characters that are perfectly valid in URLs, such as `*`.
This patch makes direct use of `toEncodedUrlPiece`, which lets users implement
encoding according to their needs.
Closes #1511
2022-03-21 17:29:23 +01:00
Gaël Deest
af3dde1b1d
Merge pull request #1566 from haskell-servant/fix-operator-doc
...
Fix haddock documentation for (//) and (/:)
2022-03-21 16:14:47 +01:00
Maxim Koltsov
ced5f1a655
Allow hspec-2.9
2022-03-21 15:44:10 +01:00
Maxim Koltsov
626e1c3a7c
Relax more deps for Stackage ( #1567 )
2022-03-21 17:18:08 +03:00
Gaël Deest
0c80bc8f8e
Fix haddock documentation for (//) and (/:)
...
The examples for these two operators weren't displayed properly due to invalid Haddock markup.
2022-03-21 14:18:49 +01:00
Maxim Koltsov
d52c5d08a0
servant-server 0.19.1
2022-03-21 14:13:52 +01:00