Popularity
4.1
Stable
Activity
0.0
Stable
4
4
1
Monthly Downloads: 5
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Latest version: v0.1.1
servant-match alternatives and similar packages
Based on the "servant" category.
Alternatively, view servant-match alternatives based on common mentions on social networks and blogs.
-
servant
Servant is a Haskell DSL for describing, serving, querying, mocking, documenting web applications and more! -
servant-generate
Generate default implementations for servers in a flexible way (a.k.a servant-mock on steroids)
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
Promo
coderabbit.ai

Do you think we are missing an alternative of servant-match or a related project?
README
servant-match
This package provides a standalone implementation of dispatching a
function by matching it against a Servant API. A common usecase for
this is to convert an URI
to an ADT that provides a more structured
representation of the URL.
Usage
data DataView
= Show
| Edit
deriving (Show, Eq)
data View
= ViewUsers
| ViewNewUser
| ViewUser !Text !DataView
deriving (Show, Eq)
data User = User
type API =
"users" :> (Get '[JSON] [User] :<|> "new" :> ReqBody '[JSON] User :> Post '[JSON] User) :<|>
"user" :> Capture "user" Text :>
(Get '[JSON] User :<|>
"edit" :> ReqBody '[JSON] User :> Put '[JSON] User)
parser :: MatchT API View
parser =
(ViewUsers :<|> ViewNewUser) :<|> (\u -> ViewUser u Show :<|> ViewUser u Edit)