Relative Content

Tag Archive for haskellservant

type family instance for field types in servant’s NamedRoutes

I’m looking for a way to decorate a servant API definition: Whenever an endpoint returns a list of things, I’d like to add a query parameter.
So far, I have a type family that works on APIs that are defined with the traditional approach using :<|>: