servant/servant-server/test/Servant/Server
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
..
Internal Don't warn about necessary, expected type errors. 2020-12-06 16:03:19 +01:00
UsingContextSpec Apply stylish-haskell on all modules 2018-06-29 23:36:39 +03:00
ErrorSpec.hs unsupporting GHC < 8.6.5, removing unecessary imports 2021-10-02 13:13:24 +02:00
RouterSpec.hs Display capture hints in router layout 2022-03-23 14:30:45 +01:00
StaticFilesSpec.hs Deprecate S.Utils.StaticFiles in favor of S.Server.StaticFiles 2018-07-05 23:20:59 +03:00
StreamingSpec.hs Apply stylish-haskell on all modules 2018-06-29 23:36:39 +03:00
UsingContextSpec.hs Apply stylish-haskell on all modules 2018-06-29 23:36:39 +03:00