HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulebase-4.23.0.0Haskell2010

Data.Type.Ord

Basic operations on type-level Orderings.

Synopsis
  • Packagebase-4.23.0.0
  • Exports13
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceOrd.hs
familytype family Compare (a :: k) (b :: k) :: Ordering

Compare branches on the kind of its arguments to either compare by Symbol or Nat.

Instances3Compare
  • type Compare a b = CmpChar a bDefined in ghc-internal-10.0.0 · GHC.Internal.Data.Type.Ord
  • type Compare a b = CmpSymbol a bDefined in ghc-internal-10.0.0 · GHC.Internal.Data.Type.Ord
  • type Compare a b = CmpNat a bDefined in ghc-internal-10.0.0 · GHC.Internal.Data.Type.Ord
typetype (<=) (x :: t) (y :: t) = Assert (x <=? y) (LeErrMsg x y)

Comparison (<=) of comparable types, as a constraint.

typetype (>=) (x :: t) (y :: t) = Assert (x >=? y) (GeErrMsg x y)

Comparison (>=) of comparable types, as a constraint.

typetype (>) (x :: t) (y :: t) = Assert (x >? y) (GtErrMsg x y)

Comparison (>) of comparable types, as a constraint.

typetype (<) (x :: t) (y :: t) = Assert (x <? y) (LtErrMsg x y)

Comparison (<) of comparable types, as a constraint.