We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0dac9c commit a3f0256Copy full SHA for a3f0256
src/06-errors_and_files/01-either.md
@@ -347,7 +347,7 @@ This `flatten` + `fmap` combination looks like a recurring pattern which
347
we can combine into a function:
348
349
```hs
350
-flatMap :: (a -> Either e b) -> Either a -> Either b
+flatMap :: (a -> Either e b) -> Either e a -> Either e b
351
flatMap func val = flatten (fmap func val)
352
```
353
0 commit comments