From bd3670f54df1ac90d38af57ac76b6d36bccc6f22 Mon Sep 17 00:00:00 2001 From: "Julian K. Arni" Date: Wed, 25 May 2016 17:33:18 +0200 Subject: [PATCH] Remove host param from servant-client README. --- servant-client/README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/servant-client/README.md b/servant-client/README.md index b1ef54b5..a2d40be2 100644 --- a/servant-client/README.md +++ b/servant-client/README.md @@ -13,9 +13,8 @@ type MyApi = "books" :> Get '[JSON] [Book] -- GET /books myApi :: Proxy MyApi myApi = Proxy -getAllBooks :: ExceptT String IO [Book] -postNewBook :: Book -> ExceptT String IO Book +getAllBooks :: Manager -> BaseUrl -> ExceptT String IO [Book] +postNewBook :: Book -> Manager -> BaseUrl -> ExceptT String IO 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 +(getAllBooks :<|> postNewBook) = client myApi ```