Skip to content

Commit a3f0256

Browse files
committed
fix typo in either flatMap
1 parent a0dac9c commit a3f0256

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/06-errors_and_files/01-either.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ This `flatten` + `fmap` combination looks like a recurring pattern which
347347
we can combine into a function:
348348

349349
```hs
350-
flatMap :: (a -> Either e b) -> Either a -> Either b
350+
flatMap :: (a -> Either e b) -> Either e a -> Either e b
351351
flatMap func val = flatten (fmap func val)
352352
```
353353

0 commit comments

Comments
 (0)