servant-namedargs: Combinators for servant providing named parameters

[ bsd3, library, web ] [ Propose Tags ]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.1.0, 0.1.1.1
Change log CHANGELOG.md
Dependencies base (>=4.11 && <4.13), named (>=0.2 && <0.3), servant (>=0.14.1 && <0.17), text (>=1.2 && <1.3) [details]
License BSD-3-Clause
Author Cullin Poresky
Maintainer cporeskydev@gmail.com
Category Web
Home page https://gitlab.com/sciencei/servant-namedargs
Bug tracker https://gitlab.com/sciencei/servant-namedargs/issues
Uploaded by CullinPoresky at 2019-03-22T20:29:39Z
Distributions
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 1827 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-03-22 [all 1 reports]

Readme for servant-namedargs-0.1.1.1

[back to package description]

This library provides combinators to add named arguments to servant endpoints. These combinators are all isomorphic to existing servant combinators*, and so a type family Transform is also provided for converting namedargs combinators to and from default servant combinators. Following the pattern of servant itself, this library only adds the combinators and instances for link generation: for the instances to actually use them with servant-client and servant-server, look at servant-client-namedargs and servant-server-namedargs.

* NamedBody' is NOT isomorphic to ReqBody', because ReqBody' doesn't have a name. Conversions are still provided, but going from a NamedBody' to a ReqBody' will lose the associated name of the NamedBody', and going from a ReqBody' to a NamedBody' requires a default name which will be applied.