3[](http://travis-ci.org/haskell-servant/servant-client)
5
7This library lets you derive automatically Haskell functions that let you query each endpoint of a *servant* webservice.
12type MyApi = "books" :> Get [Book] -- GET /books
13 :<|> "books" :> ReqBody Book :> Post Book -- POST /books
18getAllBooks :: BaseUrl -> EitherT String IO [Book]
19postNewBook :: Book -> BaseUrl -> EitherT String IO Book
20-- 'client' allows you to produce operations to query an API from a client.
21(getAllBooks :<|> postNewBook) = client myApi
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list