crdt-1.0: Conflict-free replicated data types

Safe HaskellNone
LanguageHaskell2010

CRDT.Cm.Counter

Documentation

newtype Counter a Source #

Constructors

Counter a 

Instances

Show a => Show (Counter a) Source # 

Methods

showsPrec :: Int -> Counter a -> ShowS #

show :: Counter a -> String #

showList :: [Counter a] -> ShowS #

Observe (Counter a) Source # 

Associated Types

type Observed (Counter a) :: Type Source #

Methods

observe :: Counter a -> Observed (Counter a) Source #

(Num a, Eq a) => CmRDT (Counter a) (CounterOp a) (CounterOp a) Source # 
type Observed (Counter a) Source # 
type Observed (Counter a) = a