git.iko.soy/typeable/servant
on master help sign in
Fix type-synonym in tutorial
commit4e3736553425162370f80b3963ff445c47aa53d0 authorJulian K. Arni <jkarni@gmail.com> dateSun 20 Mar 2016, 19:04 (11 years ago) parent75da1a1
1 file changed+4−4
doc/tutorial/ApiType.lhs+4−4
doc/tutorial/ApiType.lhs+4−4
@@ -95,10 +95,10 @@ type Get = Verb 'GET 200
9595There are other predefined type synonyms for other common HTTP methods,
9696such as e.g.:
9797``` haskell ignore
98−data Delete = Verb 'DELETE 200
99−data Patch = Verb 'PATCH 200
100−data Post = Verb 'POST 200
101−data Put = Verb 'PUT 200
98+type Delete = Verb 'DELETE 200
99+type Patch = Verb 'PATCH 200
100+type Post = Verb 'POST 200
101+type Put = Verb 'PUT 200
102102```
103103
104104There are also variants that do not return a 200 status code, such