Remove duplicate type declaration
UserAPI1 is already defined at line 64.
commitabd11b2a8f39b4f0778a81db7d470566286a2e3e
authorBryan Richter <b@chreekat.net>
dateSat 12 May 2018, 16:58 (8 years ago)
parent0c66b9c
doc/tutorial/Server.lhs−6
@@ -95,12 +95,6 @@ users1 =
9595 ]
9696```
9797
98−Let's also write our API type.
99−
100−``` haskell ignore
101−type UserAPI1 = "users" :> Get '[JSON] [User]
102−```
103−
10498We can now take care of writing the actual webservice that will handle requests
10599to such an API. This one will be very simple, being reduced to just a single
106100endpoint. The type of the web application is determined by the API type,