servant/servant-server/test/Servant
Guy Gastineau ea96794763
Add tests for a more complete server with capture all branches.
* This fails two of the tests.  We should probably add a catch all
    at the end that captures anything not matches by the Symbols for
    the preceding branches `arms` and `legs`.
  * When using `CaptureAll` from the root "/" and empty path becomes
    an empty list.  when using it from a branch though an empty path,
    ie. a trailing separator, becomes `mempty` for the type.  Where is
    this happening?  I think this is definitely happening before
    `parseUrlpieces` gets run, so it happens in the machinery for
    Delayed and DelayedIO.  I am still looking for the code that
    produces the `txts` argument for the `captureD` lambda created in
    the `HasServer` instance for `CaptureAll`.
2022-01-25 13:38:58 -05:00
..
Server unsupporting GHC < 8.6.5, removing unecessary imports 2021-10-02 13:13:24 +02:00
ArbitraryMonadServerSpec.hs Apply stylish-haskell on all modules 2018-06-29 23:36:39 +03:00
HoistSpec.hs Apply stylish-haskell on all modules 2018-06-29 23:36:39 +03:00
ServerSpec.hs Add tests for a more complete server with capture all branches. 2022-01-25 13:38:58 -05:00