servant-record-core: Servant combinator to parse query params as Haskell record. Core library: combinator and links implementation.

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Warnings:

Servant combinator to parse query params as Haskell record. Core library: combinator and links implementation.


[Skip to Readme]

Properties

Versions 0.1.0.0
Change log CHANGELOG.md
Dependencies base (>=4.15.1 && <4.16), containers (>=0.6.4 && <0.7), http-api-data (>=0.4.3 && <0.5), servant (>=0.19 && <0.20), text (>=1.2.5 && <1.3) [details]
License MIT
Author uhbif19
Maintainer uhbif19@gmail.com
Category Servant, Web
Uploaded by uhbif19 at 2022-09-14T11:07:49Z

Modules

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for servant-record-core-0.1.0.0

[back to package description]

Servant combinator to parse query params as Haskell record.

Example:

data User = User {name :: String, surname :: String}
  deriving (Generic, Show, Eq)

type TestAPI = "users" :> QueryParamsRecord User :> Post '[JSON] NoContent

Derive Generic for your record to use it.

HasLink currently does not actually add params, because of issue.