servant/servant-server/src/Servant/Server/Internal
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
..
BasicAuth.hs unsupporting GHC < 8.6.5, removing unecessary imports 2021-10-02 13:13:24 +02:00
Context.hs Make error messages from combinators configurable 2020-07-17 17:10:31 +03:00
Delayed.hs Fix typos and grammar (#1304) 2020-06-06 00:43:51 -04:00
DelayedIO.hs Fix typos and grammar (#1304) 2020-06-06 00:43:51 -04:00
ErrorFormatter.hs Explicit export list in ErrorFormatter.hs 2020-07-30 19:05:46 +03:00
Handler.hs Add MonadFail instance for Handler wrt #1545 2022-02-26 22:31:56 +01:00
Router.hs Display capture hints in router layout 2022-03-23 14:30:45 +01:00
RouteResult.hs Split RouteApplication mega-module 2019-02-27 15:06:56 +02:00
RoutingApplication.hs Split RouteApplication mega-module 2019-02-27 15:06:56 +02:00
ServerError.hs Get rid of Unicode in err404 example (#1478) 2021-10-31 14:36:57 +03:00