Module

Data.Ordering

Package
prelude
Repository
purerl/purescript-prelude

#Ordering Source

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 Source

invert :: Ordering -> Ordering

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