Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.
/ servant-record Public archive

Servant combinator to parse query params as Haskell record

License

Notifications You must be signed in to change notification settings

uhbif19/servant-record

Repository files navigation

Project is archived

After a while I found out that there are a couple of existing solutions that I was not aware of. For example servant-queryparam-core


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.

About

Servant combinator to parse query params as Haskell record

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published