From abd11b2a8f39b4f0778a81db7d470566286a2e3e Mon Sep 17 00:00:00 2001 From: Bryan Richter Date: Sat, 12 May 2018 16:58:43 -0400 Subject: [PATCH] Remove duplicate type declaration UserAPI1 is already defined at line 64. --- doc/tutorial/Server.lhs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/doc/tutorial/Server.lhs b/doc/tutorial/Server.lhs index 327ab29c..39aa1b61 100644 --- a/doc/tutorial/Server.lhs +++ b/doc/tutorial/Server.lhs @@ -95,12 +95,6 @@ users1 = ] ``` -Let's also write our API type. - -``` haskell ignore -type UserAPI1 = "users" :> Get '[JSON] [User] -``` - We can now take care of writing the actual webservice that will handle requests to such an API. This one will be very simple, being reduced to just a single endpoint. The type of the web application is determined by the API type,