crdt-0.1: Conflict-free replicated data types
CRDT.PNCounter.Cm
Synopsis
data PNCounter a Source #
Positive-negative counter. Allows incrementing and decrementing.
Constructors
Instances
Associated Types
type State (PNCounter a) :: Type Source #
Methods
update :: PNCounter a -> State (PNCounter a) -> State (PNCounter a) Source #
initial :: Num a => a Source #
Initial state