haskellari / lattices

Fine-grained lattice primitives for Haskell
BSD 3-Clause "New" or "Revised" License
35 stars 15 forks source link

Any vs All #28

Closed blargg closed 8 years ago

blargg commented 8 years ago

Based on the names, it seemed like the semi lattice instances for Any and All should be opposites (roughly, Any = Op . All). It looks like Any and All have the same instances right now. Would it be better to make Any and All opposites?

phadej commented 8 years ago

The instances are the same as for Bool. In the context of All and Any think \/ as || and /\ as &&.

blargg commented 8 years ago

Sounds good to me.