crdt-0.1: Conflict-free replicated data types
CRDT.Cv
Synopsis
class Semigroup state => CvRDT state Source #
State-based, or convergent (Cv) replicated data type.
Update is any function modifying state.
state
Query function is not needed. State itself is exposed. In other words, query = id.
query = id
id
Laws:
x <> y == y <> x
<>
x <> x == x
Instances