Skip to content

Commit bdc639e

Browse files
Update lesson6-validation.md
1 parent e77fbb4 commit bdc639e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slides/lesson6-validation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ calls or database interactions.
154154
```haskell
155155
type UserError = Response<string, 400>
156156
type InternalError = Response<string, 500>
157-
type APIError = Either<UserError, InternalError>
157+
type APIError = UserError | InternalError
158158
```
159159
160160
- Also, since we don't trust our inputs, they become `unknown`

0 commit comments

Comments
 (0)