git.iko.soy/typeable/servant
on master help sign in
Merge pull request #518 from haskell-servant/jkarni/fix-client-readme

Remove host param from servant-client README.

commit46c8b26c92bb19a5992603f2cc7ae22966165d18 authorJulian Arni <jkarni@gmail.com> dateThu 26 May 2016, 13:06 (10 years ago) parent6665f77bd3670f
1 file changed+3−4
servant-client/README.md+3−4
servant-client/README.md+3−4
@@ -13,9 +13,8 @@ type MyApi = "books" :> Get '[JSON] [Book] -- GET /books
1313myApi :: Proxy MyApi
1414myApi = Proxy
1515
16−getAllBooks :: ExceptT String IO [Book]
17−postNewBook :: Book -> ExceptT String IO Book
16+getAllBooks :: Manager -> BaseUrl -> ExceptT String IO [Book]
17+postNewBook :: Book -> Manager -> BaseUrl -> ExceptT String IO Book
1818-- 'client' allows you to produce operations to query an API from a client.
19−(getAllBooks :<|> postNewBook) = client myApi host
20− where host = BaseUrl Http "localhost" 8080
19+(getAllBooks :<|> postNewBook) = client myApi
2120```