From 54812a90792ac40c9866a4f67767ea439e7f61a9 Mon Sep 17 00:00:00 2001 From: Dmitry Ivanov Date: Tue, 2 Apr 2019 17:58:48 +0200 Subject: [PATCH] Fix the example in Servant.Server --- servant-server/src/Servant/Server.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servant-server/src/Servant/Server.hs b/servant-server/src/Servant/Server.hs index 731d9dd2..e2d9f3c5 100644 --- a/servant-server/src/Servant/Server.hs +++ b/servant-server/src/Servant/Server.hs @@ -110,7 +110,7 @@ import Servant.Server.Internal -- Example: -- -- > type MyApi = "books" :> Get '[JSON] [Book] -- GET /books --- > :<|> "books" :> ReqBody Book :> Post '[JSON] Book -- POST /books +-- > :<|> "books" :> ReqBody '[JSON] Book :> Post '[JSON] Book -- POST /books -- > -- > server :: Server MyApi -- > server = listAllBooks :<|> postBook