Popularity
2.1
Declining
Activity
0.0
Stable
4
1
0

Monthly Downloads: 9
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Web     Servant    
Latest version: v0.4.1

servant-haxl-client alternatives and similar packages

Based on the "servant" category.
Alternatively, view servant-haxl-client alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of servant-haxl-client or a related project?

Add another 'servant' Package

README

servant-client

servant

This library lets you automatically derive Haskell functions that let you query each endpoint of a servant webservice.

Example

type MyApi = "books" :> Get '[JSON] [Book] -- GET /books
        :<|> "books" :> ReqBody Book :> Post '[JSON] Book -- POST /books

myApi :: Proxy MyApi
myApi = Proxy

getAllBooks :: GenHaxl () [Book]
postNewBook :: Book -> GenHaxl () Book
-- 'client' allows you to produce operations to query an API from a client.
(getAllBooks :<|> postNewBook) = client myApi host
  where host = BaseUrl Http "localhost" 8080