HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulesome-1.0.6Haskell2010

Data.OrdP

  • 1 class
  • Packagesome-1.0.6
  • Exports1
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceOrdP.hs
classclass (EqP f, forall (a :: k). Ord (f a)) => OrdP (f :: k -> Type) where
#

Heterogenous lifted total order.

This class is stronger version of Ord1 from base

class (forall a. Ord a => Ord (f a)) => Ord1 f where
    liftCompare :: (a -> b -> Ordering) -> f a -> f b -> Ordering

Methods

Instances12OrdP, …