The latest version of servant-client is 0.20.2-0.
servant-client
Version 0.2.2 revision 1 uploaded by phadej.
Package meta
- Synopsis
- automatical derivation of querying functions for servant webservices
- Description
This library lets you derive automatically Haskell functions that let you query each endpoint of a servant webservice.
Example below.
type MyApi = "books" :> Get [Book] -- GET /books :<|> "books" :> ReqBody Book :> Post Book -- POST /books myApi :: Proxy MyApi myApi = Proxy getAllBooks :: BaseUrl -> EitherT String IO [Book] postNewBook :: Book -> BaseUrl -> EitherT String IO Book (getAllBooks :<|> postNewBook) = client myApi
- Author
- Alp Mestanogullari, Sönke Hahn, Julian K. Arni
- Bug reports
- http://github.com/haskell-servant/servant-client/issues
- Category
- Web
- Copyright
- 2014 Zalora South East Asia Pte Ltd
- Homepage
- http://haskell-servant.github.io/
- Maintainer
- alpmestan@gmail.com
- Package URL
- n/a
- Stability
- n/a