on master help sign in
Merge pull request #958 from chreekat/patch-1

Remove duplicate type declaration in server tutorial

commitf88cfd0740be8b2e3085584ee59f20e034168e58 authorAlp Mestanogullari <alpmestan@gmail.com> dateSat 12 May 2018, 23:42 (8 years ago) parent0c66b9cabd11b2
1 file changed−6
doc/tutorial/Server.lhs−6
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,