You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: text/chapter6.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -624,12 +624,12 @@ Another reason to define a superclass relationship is in the case where there is
624
624
act::m->a->a
625
625
```
626
626
627
-
An _action_ is a function which describes how monoidal values can be used to modify a value of another type.There are two laws for the `Action` type class:
627
+
An _action_ is a function which describes how monoidal values are used to determine how to modify a value of another type.There are two laws for the `Action` type class:
628
628
629
629
- `act mempty a = a`
630
630
- `act (m1 <> m2) a = act m1 (act m2 a)`
631
631
632
-
That is, the action respects the operations defined by the `Monoid` class.
632
+
Applying an empty action is a no-op.And applying two actions insequence is the same as applying the actions combined.That is, actions respect the operations defined by the `Monoid` class.
633
633
634
634
For example, the natural numbers form a monoid under multiplication:
0 commit comments