plutus-tx-1.0.0.0: Libraries for Plutus Tx and its prelude
Safe Haskell None
Language Haskell2010

PlutusTx.Lattice

Synopsis

Documentation

class JoinSemiLattice a where Source #

A join semi-lattice, i.e. a partially ordered set equipped with a binary operation (\/) .

Note that the mathematical definition would require an ordering constraint - we omit that so we can define instances for e.g. (->) .

Methods

(\/) :: a -> a -> a Source #

Instances

Instances details
JoinSemiLattice Bool Source #
Instance details

Defined in PlutusTx.Lattice

JoinSemiLattice b => JoinSemiLattice (a -> b) Source #
Instance details

Defined in PlutusTx.Lattice

Methods

(\/) :: (a -> b) -> (a -> b) -> a -> b Source #

( JoinSemiLattice a, JoinSemiLattice b) => JoinSemiLattice (a, b) Source #
Instance details

Defined in PlutusTx.Lattice

Methods

(\/) :: (a, b) -> (a, b) -> (a, b) Source #

class MeetSemiLattice a where Source #

A meet semi-lattice, i.e. a partially ordered set equipped with a binary operation (/\) .

Note that the mathematical definition would require an ordering constraint - we omit that so we can define instances for e.g. (->) .

Methods

(/\) :: a -> a -> a Source #

Instances

Instances details
MeetSemiLattice Bool Source #
Instance details

Defined in PlutusTx.Lattice

MeetSemiLattice b => MeetSemiLattice (a -> b) Source #
Instance details

Defined in PlutusTx.Lattice

Methods

(/\) :: (a -> b) -> (a -> b) -> a -> b Source #

( MeetSemiLattice a, MeetSemiLattice b) => MeetSemiLattice (a, b) Source #
Instance details

Defined in PlutusTx.Lattice

Methods

(/\) :: (a, b) -> (a, b) -> (a, b) Source #

class JoinSemiLattice a => BoundedJoinSemiLattice a where Source #

A bounded join semi-lattice, i.e. a join semi-lattice augmented with a distinguished element bottom which is the unit of (\/) .

class MeetSemiLattice a => BoundedMeetSemiLattice a where Source #

A bounded meet semi-lattice, i.e. a meet semi-lattice augmented with a distinguished element top which is the unit of (/\) .

Methods

top :: a Source #

newtype Join a Source #

A wrapper witnessing that a join semi-lattice is a monoid with (\/) and bottom .

Constructors

Join a

newtype Meet a Source #

A wrapper witnessing that a meet semi-lattice is a monoid with (/\) and top .

Constructors

Meet a