crdt-0.1: Conflict-free replicated data types

Safe HaskellSafe
LanguageHaskell2010

CRDT.PNCounter.Cm

Synopsis

Documentation

data PNCounter a Source #

Positive-negative counter. Allows incrementing and decrementing.

Constructors

Increment 
Decrement 

Instances

Num a => CmRDT (PNCounter a) Source # 

Associated Types

type State (PNCounter a) :: Type Source #

type State (PNCounter a) Source # 
type State (PNCounter a) = a

initial :: Num a => a Source #

Initial state