Module

Data.Ordering

#Ordering

data Ordering

The Ordering data type represents the three possible outcomes of comparing two values:

LT - The first value is less than the second. GT - The first value is greater than the second. EQ - The first value is equal to the second.

Constructors

Instances

#invert

invert :: Ordering -> Ordering

Reverses an Ordering value, flipping greater than for less than while preserving equality.

Modules