Repository navigation
With what did I merge?
The main feature here is that merge returns the value just before the merge took place (which enables a lot of combinators), and Mergeable store only requires a Semigroup. This means you can, for instance, implement swap using a Mergeable store and the Semigroup: x + y = y. Since we get the value before, this Semigroup would make merge return x, but set the store to y. Similarly, merge with the Semigroup x + y = x means that merge is get. In this way, we can see that a store that gives general merges with any Semigroup is strictly more powerful than a get/put-type store.
This change paves the way for new https://github.com/twitter/summingbird features.