haskell-servant / haskell-servant/servant

Implement a "CaptureSome" combinator

Open
#962 3 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Haskell
Stars
2k
Forks
427
Avg merge
2d 23h
Merged PRs (30d)
5

Description

There [exist in the wild](https://docs.docker.com/registry/spec/api) APIs such as this:

```
GET /v2//manifests/
GET /v2//tags/list
```

where `` comprises _one or more_ path segments. It would be nice to be able to do something like this:

```
"v2" :> CaptureSome "name" [String] :> "manifests" :> Capture "reference" String :> Get ...
"v2" :> CaptureSome "name" [String] :> "tags" :> "list" :> Get ...
```

to support them.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.