crdt-9.0: Conflict-free replicated data types
CRDT.Cm.Counter
data Counter a Source #
Constructors
Instances
Methods
minBound :: Counter a #
maxBound :: Counter a #
succ :: Counter a -> Counter a #
pred :: Counter a -> Counter a #
toEnum :: Int -> Counter a #
fromEnum :: Counter a -> Int #
enumFrom :: Counter a -> [Counter a] #
enumFromThen :: Counter a -> Counter a -> [Counter a] #
enumFromTo :: Counter a -> Counter a -> [Counter a] #
enumFromThenTo :: Counter a -> Counter a -> Counter a -> [Counter a] #
(==) :: Counter a -> Counter a -> Bool #
(/=) :: Counter a -> Counter a -> Bool #
showsPrec :: Int -> Counter a -> ShowS #
show :: Counter a -> String #
showList :: [Counter a] -> ShowS #
Associated Types
type Intent (Counter a) :: * Source #
type Payload (Counter a) :: * Source #
initial :: Payload (Counter a) Source #
makeOp :: Clock m => Intent (Counter a) -> Payload (Counter a) -> Maybe (m (Counter a)) Source #
apply :: Counter a -> Payload (Counter a) -> Payload (Counter a) Source #
Empty order, allowing arbitrary reordering
precedes :: Counter a -> Counter a -> Bool Source #