Derives an PartialOrd[Chunk[A]]
given an PartialOrd[A]
.
Derives an PartialOrd[F[A]]
given a Derive[F, PartialOrd]
and an PartialOrd[A]
.
Derives an PartialOrd[Either[A, B]]
given an PartialOrd[A]
and an PartialOrd[B]
.
Derives an PartialOrd[List[A]]
given an PartialOrd[A]
.
Derives an PartialOrd[NonEmptyChunk[A]]
given an PartialOrd[A]
.
Derives an PartialOrd[Option[A]]
given an PartialOrd[A]
.
Derives an PartialOrd[Option[A]]
given an PartialOrd[A]
. None
will be treated as
less than all other values.
The Contravariant
instance for PartialOrd
.
The IdentityBoth
(and thus AssociativeBoth
) instance for PartialOrd
.
The IdentityEither
(and thus AssociativeEither
) instance for PartialOrd
.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd
for a product type given an PartialOrd
for each element of
the product type.
Derives an PartialOrd[Vector[A]]
given an PartialOrd[A]
.
For all values a1
and a2
, if a1
is less than or equal to a2
and
a2
is less than or equal to a1
then a1
is equal to a2
.
For all values a1
and a2
, if a1
is greater than or equal to a2
and
a2
is greater than or equal to a1
then a1
is equal to a2
.
Summons an implicit PartialOrd[A]
.
For all values a1
and a2
, iff a1 =??= a2
is Ordering.Equals
then a1 === a2
.
The set of all laws that instances of PartialOrd
must satisfy.
The set of all laws that instances of PartialOrd
must satisfy.
Constructs an PartialOrd[A]
from a function.
Constructs an PartialOrd[A]
from a function. The instance will be optimized to
first compare the values for reference equality and then compare the
values using the specified function.
Constructs an instance from an ord
function and a equal0
function.
Constructs an instance from an ord
function and a equal0
function.
Since this takes a separate equal0
, short-circuiting the equality check (failing fast) is possible.
For all values a1
, a2
, and a3
, if a1
is less than a2
and a2
is
less than a3
then a1
is less than a3
.
For all values a1
, a2
, and a3
, if a1
is greater than a2
and a2
is greater than a3
then a1
is greater than a3
.