Merge pull request #958 from chreekat/patch-1

Remove duplicate type declaration in server tutorial
This commit is contained in:
Alp Mestanogullari 2018-05-12 23:42:01 +02:00 committed by GitHub
commit f88cfd0740
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 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 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, endpoint. The type of the web application is determined by the API type,