forked from haskell-servant/servant-ekg
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CaptureAll and support for RawM WithResource (#11)
* Fix CaptureAll and support for RawM WithResource 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 `Raw` behave as expected.
- Loading branch information
Showing
5 changed files
with
61 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters