-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix CaptureAll and support for RawM WithResource #11
Fix CaptureAll and support for RawM WithResource #11
Conversation
152a9e0
to
d7f3ff8
Compare
The tests run successfully locally with
|
Hi @HanStolpo thank you for your PR. Loogs good for me, but tests in CI are failing. Could you please fix it? |
Sure I will fix it, I just am not sure what the actual failure in CI is, it looks like its stack related but I didn't change anything in the stack config, ah but I guess the cabal file gets generated from the stack.yaml. |
@HanStolpo yes, you should change stack ( |
I looks like I will have to add some CPP to support different servant versions I think one of or both |
Probably yes |
Okay yes I see |
We fix the implementation of the CaptureAll instance. Previously paths would never be matched since the instance did not consume the rest of the path like `CaptureAll` does. The rest of the path is now captured and replaced with a `*` place holder and this is also the case for enumerating the endpoint. We also add instances for `RawM` and `WithResource` and add a test case to the spec to check that `CaptureAll` and `RawM` behave as expected.
e2ec881
to
b148b3b
Compare
Okay I generated the cabal file from the updated package.yaml file and version gated the |
Sorry the version gating is not quite correct |
b148b3b
to
7faa7c2
Compare
Okay I fixed the version gating. It might be useful to also run tests with later GHCs / Servant versions. I didn't look at the workflow stuff though. |
@HanStolpo actually, previously it was correct... no there is
|
yes, that'll be good to launch with matrix, maybe will add this later |
We fix the implementation of the CaptureAll instance. Previously paths would never be matched since the instance did not consume the rest of the path like
CaptureAll
does. The rest of the path is now captured and replaced with a*
place holder and this is also the case for enumerating the endpoint.We also add instances for
RawM
andWithResource
and add a test case to the spec to check thatCaptureAll
andRawM
behave as expected.