crdt-2.0: Conflict-free replicated data types

Safe HaskellSafe
LanguageHaskell2010

Data.Semilattice

Synopsis

Documentation

class Semigroup a => Semilattice a Source #

A semilattice.

It may be a join-semilattice, or meet-semilattice, it doesn't matter.

If it matters for you, use package lattices.

In addition to Semigroup, Semilattice defines this laws:

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

merge :: Semilattice a => a -> a -> a infixr 6 Source #

Just (<>), specialized to Semilattice.