ron-0.11: RON

Safe HaskellSafe
LanguageHaskell2010

RON.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 these laws:

commutativity
x <> y == y <> x
idempotency
x <> x == x
Instances
Semilattice a => Semilattice (Maybe a) Source # 
Instance details

Defined in RON.Semilattice

Ord a => Semilattice (Max a) Source # 
Instance details

Defined in RON.Semilattice

Ord a => Semilattice (Set a) Source # 
Instance details

Defined in RON.Semilattice

type BoundedSemilattice a = (Monoid a, Semilattice a) Source #

A bounded semilattice.

Bounded semilattice laws are already defined by Monoid and Semilattice, so we don't define an explicit class here.