plutus-tx-1.0.0.0: Libraries for Plutus Tx and its prelude
Safe Haskell None
Language Haskell2010

PlutusTx.Ord

Synopsis

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.

Minimal complete definition

Nothing

Methods

compare :: a -> a -> Ordering Source #

(<) :: a -> a -> Bool infix 4 Source #

(<=) :: a -> a -> Bool infix 4 Source #

(>) :: a -> a -> Bool infix 4 Source #

(>=) :: a -> a -> Bool infix 4 Source #

max :: a -> a -> a Source #

min :: a -> a -> a Source #

Instances

Instances details
Ord Bool Source #
Instance details

Defined in PlutusTx.Ord

Ord Integer Source #
Instance details

Defined in PlutusTx.Ord

Ord () Source #
Instance details

Defined in PlutusTx.Ord

Ord BuiltinByteString Source #
Instance details

Defined in PlutusTx.Ord

Ord Rational Source #
Instance details

Defined in PlutusTx.Ratio

Ord a => Ord [a] Source #
Instance details

Defined in PlutusTx.Ord

Methods

compare :: [a] -> [a] -> Ordering Source #

(<) :: [a] -> [a] -> Bool Source #

(<=) :: [a] -> [a] -> Bool Source #

(>) :: [a] -> [a] -> Bool Source #

(>=) :: [a] -> [a] -> Bool Source #

max :: [a] -> [a] -> [a] Source #

min :: [a] -> [a] -> [a] Source #

Ord a => Ord ( Maybe a) Source #
Instance details

Defined in PlutusTx.Ord

( Ord a, Ord b) => Ord ( Either a b) Source #
Instance details

Defined in PlutusTx.Ord

( Ord a, Ord b) => Ord (a, b) Source #
Instance details

Defined in PlutusTx.Ord

Methods

compare :: (a, b) -> (a, b) -> Ordering Source #

(<) :: (a, b) -> (a, b) -> Bool Source #

(<=) :: (a, b) -> (a, b) -> Bool Source #

(>) :: (a, b) -> (a, b) -> Bool Source #

(>=) :: (a, b) -> (a, b) -> Bool Source #

max :: (a, b) -> (a, b) -> (a, b) Source #

min :: (a, b) -> (a, b) -> (a, b) Source #

( Ord k, Ord v) => Ord ( Map k v) Source #
Instance details

Defined in PlutusTx.AssocMap

data Ordering Source #

Constructors

LT
EQ
GT

Instances

Instances details
Bounded Ordering

Since: base-2.1

Instance details

Defined in GHC.Enum

Enum Ordering

Since: base-2.1

Instance details

Defined in GHC.Enum

Eq Ordering
Instance details

Defined in GHC.Classes

Data Ordering

Since: base-4.0.0.0

Instance details

Defined in Data.Data

Methods

gfoldl :: ( forall d b. Data d => c (d -> b) -> d -> c b) -> ( forall g. g -> c g) -> Ordering -> c Ordering Source #

gunfold :: ( forall b r. Data b => c (b -> r) -> c r) -> ( forall r. r -> c r) -> Constr -> c Ordering Source #

toConstr :: Ordering -> Constr Source #

dataTypeOf :: Ordering -> DataType Source #

dataCast1 :: Typeable t => ( forall d. Data d => c (t d)) -> Maybe (c Ordering ) Source #

dataCast2 :: Typeable t => ( forall d e. ( Data d, Data e) => c (t d e)) -> Maybe (c Ordering ) Source #

gmapT :: ( forall b. Data b => b -> b) -> Ordering -> Ordering Source #

gmapQl :: (r -> r' -> r) -> r -> ( forall d. Data d => d -> r') -> Ordering -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> ( forall d. Data d => d -> r') -> Ordering -> r Source #

gmapQ :: ( forall d. Data d => d -> u) -> Ordering -> [u] Source #

gmapQi :: Int -> ( forall d. Data d => d -> u) -> Ordering -> u Source #

gmapM :: Monad m => ( forall d. Data d => d -> m d) -> Ordering -> m Ordering Source #

gmapMp :: MonadPlus m => ( forall d. Data d => d -> m d) -> Ordering -> m Ordering Source #

gmapMo :: MonadPlus m => ( forall d. Data d => d -> m d) -> Ordering -> m Ordering Source #

Ord Ordering
Instance details

Defined in GHC.Classes

Read Ordering

Since: base-2.1

Instance details

Defined in GHC.Read

Show Ordering

Since: base-2.1

Instance details

Defined in GHC.Show

Ix Ordering

Since: base-2.1

Instance details

Defined in GHC.Ix

Generic Ordering

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

Semigroup Ordering

Since: base-4.9.0.0

Instance details

Defined in GHC.Base

Monoid Ordering

Since: base-2.1

Instance details

Defined in GHC.Base

Hashable Ordering
Instance details

Defined in Data.Hashable.Class

ToJSON Ordering
Instance details

Defined in Data.Aeson.Types.ToJSON

FromJSON Ordering
Instance details

Defined in Data.Aeson.Types.FromJSON

NFData Ordering
Instance details

Defined in Control.DeepSeq

AsEmpty Ordering
Instance details

Defined in Control.Lens.Empty

Serialise Ordering

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Eq Ordering Source #
Instance details

Defined in PlutusTx.Ord

Semigroup Ordering Source #
Instance details

Defined in PlutusTx.Semigroup

Enum Ordering Source #
Instance details

Defined in PlutusTx.Enum

type Rep Ordering
Instance details

Defined in GHC.Generics

Orphan instances