Module

Type.Data.Ordering

Package
purescript-typelevel-prelude
Repository
purescript/purescript-typelevel-prelude

#OProxy Source

data OProxy ordering

Constructors

#IsOrdering Source

class IsOrdering ordering  where

Members

Instances

#reifyOrdering Source

reifyOrdering :: forall r. Ordering -> (forall proxy o. IsOrdering o => proxy o -> r) -> r

Use a value level Ordering as a type-level Ordering

#Append Source

class Append lhs rhs output | lhs -> rhs output

Instances

#append Source

append :: forall proxy l r o. Append l r o => proxy l -> proxy r -> Proxy o

#Invert Source

class Invert ordering result | ordering -> result

Instances

#invert Source

invert :: forall proxy i o. Invert i o => proxy i -> Proxy o

#equals Source

equals :: forall proxy l r o. Equals l r o => proxy l -> proxy r -> Proxy o

Re-exports from Prim.Ordering

#Ordering

data Ordering :: Type

The Ordering kind represents the three possibilities of comparing two types of the same kind: LT (less than), EQ (equal to), and GT (greater than).

#LT

data LT :: Ordering

The 'less than' ordering type.

#GT

data GT :: Ordering

The 'greater than' ordering type.

#EQ

data EQ :: Ordering

The 'equal to' ordering type.