Plutarch.Positive
data PPositive s Source #
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 #
pfromDataImpl :: forall (s :: S). Term s (PAsData PPositive) -> Term s PPositive Source #
pdataImpl :: forall (s :: S). Term s PPositive -> Term s PData Source #
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 #
Associated Types
type DPTStrat PPositive Source #
type PInner PPositive :: PType Source #
type PCovariant' PPositive Source #
type PContravariant' PPositive Source #
type PVariant' PPositive Source #
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 #
(#+) :: 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' :: forall (s :: S). Bool -> Term s PPositive -> Term s PString Source #
type PTryFromExcess PInteger PPositive :: PType Source #
ptryFrom' :: forall (s :: S) (r :: PType). Term s PInteger -> ((Term s PPositive, Reduce (PTryFromExcess PInteger PPositive s)) -> Term s r) -> Term s r Source #
type PTryFromExcess PData (PAsData PPositive) :: PType Source #
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 #
type Rep (PPositive s) :: Type -> Type Source #
from :: PPositive s -> Rep (PPositive s) x Source #
to :: Rep (PPositive s) x -> PPositive s Source #
ppositive :: Term s (PInteger :--> PMaybe PPositive) Source #
Build a PPositive from a PInteger. Yields PNothing if argument is zero.
PPositive
PInteger
PNothing
ptryPositive :: Term s (PInteger :--> PPositive) Source #
Partial version of PPositive. Errors if argument is zero.