Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class Eq a ⇒ Ord a where Source #
The Ord
class is used for totally ordered datatypes.
Minimal complete definition: either compare
or <=
.
Using compare
can be more efficient for complex types.
compare ∷ a → a → Ordering Source #
(<) ∷ a → a → Bool infix 4 Source #
(<=) ∷ a → a → Bool infix 4 Source #
(>) ∷ a → a → Bool infix 4 Source #
Instances
Ord BuiltinByteString Source # | |
Defined in PlutusTx.Ord compare ∷ BuiltinByteString → BuiltinByteString → Ordering Source # (<) ∷ BuiltinByteString → BuiltinByteString → Bool Source # (<=) ∷ BuiltinByteString → BuiltinByteString → Bool Source # (>) ∷ BuiltinByteString → BuiltinByteString → Bool Source # (>=) ∷ BuiltinByteString → BuiltinByteString → Bool Source # max ∷ BuiltinByteString → BuiltinByteString → BuiltinByteString Source # min ∷ BuiltinByteString → BuiltinByteString → BuiltinByteString Source # | |
Ord Rational Source # | |
Ord Integer Source # | |
Defined in PlutusTx.Ord | |
Ord () Source # | |
Ord Bool Source # | |
Ord a ⇒ Ord (Maybe a) Source # | |
Defined in PlutusTx.Ord | |
Ord a ⇒ Ord [a] Source # | |
(Ord a, Ord b) ⇒ Ord (Either a b) Source # | |
Defined in PlutusTx.Ord | |
(Ord a, Ord b) ⇒ Ord (These a b) Source # | |
(Ord a, Ord b) ⇒ Ord (a, b) Source # | |