3 ms·
The Haskellic name for Additive is Monoid.
by eru 12y ago
The Haskellic name for Additive is Monoid.
- wz1000 12y agoThat depends on how you define Additive, whether it includes the concept of commutativity, associativity and so on.
- kqr 12y agoSemigroup is a closer match. Monoid includes an identity element. (All monoids are semigroups, and a lot of semigroups are monoids, but not all of them.)
- barrkel 12y agoI made up "Additive" to introduce the idea of different types all having a single operator in common, rather than as a concrete Haskell-ish thing. Its purpose here is to focus on the right level of abstraction when thinking about what a monad is, particularly when coming from languages like Java, C++, C#, etc.