Skip to content

Commit 4e37365

Browse files
committed
Fix type-synonym in tutorial
1 parent 75da1a1 commit 4e37365

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/tutorial/ApiType.lhs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ type Get = Verb 'GET 200
9595
There are other predefined type synonyms for other common HTTP methods,
9696
such 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
104104
There are also variants that do not return a 200 status code, such

0 commit comments

Comments
 (0)