plutarch-1.9.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Plutarch.Positive

Synopsis

Documentation

data PPositive (s :: S) Source #

Instances

Instances details
PIsData PPositive Source # 
Instance details

Defined in Plutarch.Positive

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PPositive) -> Term s PPositive Source #

pdataImpl :: forall (s :: S). Term s PPositive -> Term s PData Source #

PCountable PPositive Source #

@since WIP

Instance details

Defined in Plutarch.Enum

Methods

psuccessor :: forall (s :: S). Term s (PPositive :--> PPositive) Source #

psuccessorN :: forall (s :: S). Term s (PPositive :--> (PPositive :--> PPositive)) Source #

PIntegral PPositive Source # 
Instance details

Defined in Plutarch.Positive

Methods

pdiv :: forall (s :: S). Term s (PPositive :--> (PPositive :--> PPositive)) Source #

pmod :: forall (s :: S). Term s (PPositive :--> (PPositive :--> PPositive)) Source #

pquot :: forall (s :: S). Term s (PPositive :--> (PPositive :--> PPositive)) Source #

prem :: forall (s :: S). Term s (PPositive :--> (PPositive :--> PPositive)) Source #

PEq PPositive Source # 
Instance details

Defined in Plutarch.Positive

Methods

(#==) :: forall (s :: S). Term s PPositive -> Term s PPositive -> Term s PBool Source #

PLiftable PPositive Source # 
Instance details

Defined in Plutarch.Positive

POrd PPositive Source # 
Instance details

Defined in Plutarch.Positive

Methods

pmax :: forall (s :: S). Term s PPositive -> Term s PPositive -> Term s PPositive Source #

pmin :: forall (s :: S). Term s PPositive -> Term s PPositive -> Term s PPositive Source #

PPartialOrd PPositive Source # 
Instance details

Defined in Plutarch.Positive

Methods

(#<=) :: forall (s :: S). Term s PPositive -> Term s PPositive -> Term s PBool Source #

(#<) :: forall (s :: S). Term s PPositive -> Term s PPositive -> Term s PBool Source #

(#>=) :: forall (s :: S). Term s PPositive -> Term s PPositive -> Term s PBool Source #

(#>) :: forall (s :: S). Term s PPositive -> Term s PPositive -> Term s PBool Source #

DerivePlutusType PPositive Source # 
Instance details

Defined in Plutarch.Positive

Associated Types

type DPTStrat PPositive Source #

PlutusType PPositive Source # 
Instance details

Defined in Plutarch.Positive

Methods

pcon' :: forall (s :: S). PPositive s -> Term s (PInner PPositive) Source #

pmatch' :: forall (s :: S) (b :: PType). Term s (PInner PPositive) -> (PPositive s -> Term s b) -> Term s b Source #

PNum PPositive Source # 
Instance details

Defined in Plutarch.Positive

Methods

(#+) :: forall (s :: S). Term s PPositive -> Term s PPositive -> Term s PPositive Source #

(#-) :: forall (s :: S). Term s PPositive -> Term s PPositive -> Term s PPositive Source #

(#*) :: forall (s :: S). Term s PPositive -> Term s PPositive -> Term s PPositive Source #

pnegate :: forall (s :: S). Term s (PPositive :--> PPositive) Source #

pabs :: forall (s :: S). Term s (PPositive :--> PPositive) Source #

psignum :: forall (s :: S). Term s (PPositive :--> PPositive) Source #

pfromInteger :: forall (s :: S). Integer -> Term s PPositive Source #

PShow PPositive Source # 
Instance details

Defined in Plutarch.Positive

Methods

pshow' :: forall (s :: S). Bool -> Term s PPositive -> Term s PString Source #

PTryFrom PInteger PPositive Source # 
Instance details

Defined in Plutarch.Positive

Associated Types

type PTryFromExcess PInteger PPositive :: PType Source #

Methods

ptryFrom' :: forall (s :: S) (r :: PType). Term s PInteger -> ((Term s PPositive, Reduce (PTryFromExcess PInteger PPositive s)) -> Term s r) -> Term s r Source #

PTryFrom PData (PAsData PPositive) Source # 
Instance details

Defined in Plutarch.Positive

Associated Types

type PTryFromExcess PData (PAsData PPositive) :: PType Source #

Methods

ptryFrom' :: forall (s :: S) (r :: PType). Term s PData -> ((Term s (PAsData PPositive), Reduce (PTryFromExcess PData (PAsData PPositive) s)) -> Term s r) -> Term s r Source #

Generic (PPositive s) Source # 
Instance details

Defined in Plutarch.Positive

Associated Types

type Rep (PPositive s) :: Type -> Type Source #

Methods

from :: PPositive s -> Rep (PPositive s) x Source #

to :: Rep (PPositive s) x -> PPositive s Source #

type AsHaskell PPositive Source #

@since WIP

Instance details

Defined in Plutarch.Positive

type PlutusRepr PPositive Source # 
Instance details

Defined in Plutarch.Positive

type DPTStrat PPositive Source # 
Instance details

Defined in Plutarch.Positive

type PContravariant' PPositive Source # 
Instance details

Defined in Plutarch.Positive

type PCovariant' PPositive Source # 
Instance details

Defined in Plutarch.Positive

type PInner PPositive Source # 
Instance details

Defined in Plutarch.Positive

type PVariant' PPositive Source # 
Instance details

Defined in Plutarch.Positive

type PTryFromExcess PInteger PPositive Source # 
Instance details

Defined in Plutarch.Positive

type PTryFromExcess PData (PAsData PPositive) Source # 
Instance details

Defined in Plutarch.Positive

type Rep (PPositive s) Source # 
Instance details

Defined in Plutarch.Positive

type Rep (PPositive s) = D1 ('MetaData "PPositive" "Plutarch.Positive" "plutarch-1.9.0-DaxzFvLNVysDL1hkJ4YFrw" 'True) (C1 ('MetaCons "PPositive" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PInteger))))

ppositive :: Term s (PInteger :--> PMaybe PPositive) Source #

Build a PPositive from a PInteger. Yields PNothing if argument is zero.

ptryPositive :: Term s (PInteger :--> PPositive) Source #

Partial version of PPositive. Errors if argument is zero.

data Positive Source #

@since WIP

Instances

Instances details
Arbitrary Positive Source #

@since WIP

Instance details

Defined in Plutarch.Positive

CoArbitrary Positive Source #

@since WIP

Instance details

Defined in Plutarch.Positive

Methods

coarbitrary :: Positive -> Gen b -> Gen b

Function Positive Source #

@since WIP

Instance details

Defined in Plutarch.Positive

Methods

function :: (Positive -> b) -> Positive :-> b

Show Positive Source # 
Instance details

Defined in Plutarch.Positive

Eq Positive Source # 
Instance details

Defined in Plutarch.Positive

Ord Positive Source # 
Instance details

Defined in Plutarch.Positive

Pretty Positive Source #

@since WIP

Instance details

Defined in Plutarch.Positive

Methods

pretty :: Positive -> Doc ann

prettyList :: [Positive] -> Doc ann