crdt-0.1: Conflict-free replicated data types

Safe HaskellSafe
LanguageHaskell2010

CRDT.Cv

Synopsis

Documentation

class Semigroup state => CvRDT state Source #

State-based, or convergent (Cv) replicated data type.

Update is any function modifying state.

Query function is not needed. State itself is exposed. In other words, query = id.

Laws:

commutativity
x <> y == y <> x
idempotency
x <> x == x

Instances

Ord a => CvRDT (GCounter a) Source # 
Ord a => CvRDT (PNCounter a) Source # 
Ord a => CvRDT (LWW a) Source #