Skip to content

Commit ce0644c

Browse files
authored
Merge pull request #169 from sourcecodemorsecode/patch-3
Improve grammar for explicit XOR case
2 parents 0023be4 + a6dc63a commit ce0644c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_chapters/haskell3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ class Applicative f => Alternative (f :: * -> *) where
888888
(<|>) :: f a -> f a -> f a
889889
```
890890

891-
`empty`: This function represents a computation with *no result or a failure*. It serves as the identity element. For different data types that are instances of Alternative, `empty` represents an empty container or a *failed computation*, depending on the context.
891+
`empty`: This function represents a computation with either *no result, or a failure*. It serves as the identity element. For different data types that are instances of Alternative, `empty` represents an empty container or a *failed computation*, depending on the context.
892892

893893
`(<|>)`: The `<|>` operator combines two computations, and its used to express alternatives. It takes two computations of the same type and returns a computation that will produce a result from the first computation if it succeeds, or if it fails, it will produce a result from the second computation. This operator allows you to handle branching logic and alternative paths in your code.
894894

0 commit comments

Comments
 (0)