Skip to content
This repository was archived by the owner on Aug 23, 2024. It is now read-only.

Files

Failed to load latest commit information.

Latest commit

 Cannot retrieve latest commit at this time.

History

History

servant-record-server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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.