Open ocharles opened 6 years ago
If "n mathematics, a join-semilattice (or upper semilattice) is a partially ordered set that has a join (a least upper bound)", shouldn't we have
class PartialOrd a => JoinSemiLattice a where class PartialOrd a => MeetSemiLattice a where
?
This would have pre-empted the problems reported in https://github.com/phadej/lattices/pull/53 and https://github.com/phadej/lattices/pull/52.
That will make life hard for types without decidable equality, like JoinSemiLattice v => JoinSemiLattice (k -> v)
JoinSemiLattice v => JoinSemiLattice (k -> v)
Ah, that is problematic.
If "n mathematics, a join-semilattice (or upper semilattice) is a partially ordered set that has a join (a least upper bound)", shouldn't we have
?
This would have pre-empted the problems reported in https://github.com/phadej/lattices/pull/53 and https://github.com/phadej/lattices/pull/52.