Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Plutarch.Extra.Sum
Documentation
newtype PSum (a :: S -> Type) (s :: S) Source #
A 'numerical' value which is monoidal over its addition.
Since: 1.0.0
Instances
PApplicative PSum Source # | Since: 1.0.0 |
PApply PSum Source # | Since: 1.0.0 |
PComonad PSum Source # | Since: 1.0.0 |
PExtend PSum Source # | Since: 1.0.0 |
PFunctor PSum Source # | Since: 3.1.0 |
Defined in Plutarch.Extra.Sum Associated Types type PSubcategory PSum :: (S -> Type) -> Constraint Source # Methods pfmap :: forall (a :: S -> Type) (b :: S -> Type) (s :: S). (PSubcategory PSum a, PSubcategory PSum b) => Term s ((a :--> b) :--> (PSum a :--> PSum b)) Source # pfconst :: forall (a :: S -> Type) (b :: S -> Type) (s :: S). (PSubcategory PSum a, PSubcategory PSum b) => Term s (a :--> (PSum b :--> PSum a)) Source # | |
PSemiTraversable PSum Source # | Since: 1.0.0 |
Defined in Plutarch.Extra.Traversable Methods psemitraverse :: forall (f :: (S -> Type) -> S -> Type) (a :: S -> Type) (b :: S -> Type) (s :: S). (PApply f, PSubcategory f a, PSubcategory f b, PSubcategory f (PSum b)) => Term s ((a :--> f b) :--> (PSum a :--> f (PSum b))) Source # psemitraverse_ :: forall (b :: S -> Type) (f :: (S -> Type) -> S -> Type) (a :: S -> Type) (s :: S). (PApply f, PSubcategory f b, PBoring b, PSubcategory PSum a) => Term s ((a :--> f b) :--> (PSum a :--> f b)) Source # | |
PTraversable PSum Source # | Since: 1.0.0 |
Defined in Plutarch.Extra.Traversable Methods ptraverse :: forall (f :: (S -> Type) -> S -> Type) (a :: S -> Type) (b :: S -> Type) (s :: S). (PApplicative f, PSubcategory f a, PSubcategory f b, PSubcategory f (PSum b), PSubcategory PSum a, PSubcategory PSum b) => Term s ((a :--> f b) :--> (PSum a :--> f (PSum b))) Source # ptraverse_ :: forall (b :: S -> Type) (f :: (S -> Type) -> S -> Type) (a :: S -> Type) (s :: S). (PApplicative f, PSubcategory f b, PBoring b, PSubcategory PSum a) => Term s ((a :--> f b) :--> (PSum a :--> f b)) Source # | |
PBoring a => PBoring (PSum a) Source # | Since: 1.2.0 |
PEq a => PEq (PSum a) Source # | Since: 1.0.0 |
POrd a => POrd (PSum a) Source # | Since: 1.0.0 |
Defined in Plutarch.Extra.Sum | |
POrd a => PPartialOrd (PSum a) Source # | Since: 1.4.0 |
PIsData a => PIsData (PSum a) Source # | Since: 1.0.0 |
PIntegral a => PIntegral (PSum a) Source # | Since: 1.0.0 |
Defined in Plutarch.Extra.Sum Methods pdiv :: forall (s :: S). Term s (PSum a :--> (PSum a :--> PSum a)) Source # pmod :: forall (s :: S). Term s (PSum a :--> (PSum a :--> PSum a)) Source # pquot :: forall (s :: S). Term s (PSum a :--> (PSum a :--> PSum a)) Source # prem :: forall (s :: S). Term s (PSum a :--> (PSum a :--> PSum a)) Source # | |
DerivePlutusType (PSum a) Source # | Since: 1.4.0 |
Defined in Plutarch.Extra.Sum | |
PlutusType (PSum a) Source # | |
Defined in Plutarch.Extra.Sum | |
PNum a => PNum (PSum a) Source # | Since: 1.0.0 |
Defined in Plutarch.Extra.Sum Methods (#+) :: forall (s :: S). Term s (PSum a) -> Term s (PSum a) -> Term s (PSum a) Source # (#-) :: forall (s :: S). Term s (PSum a) -> Term s (PSum a) -> Term s (PSum a) Source # (#*) :: forall (s :: S). Term s (PSum a) -> Term s (PSum a) -> Term s (PSum a) Source # pnegate :: forall (s :: S). Term s (PSum a :--> PSum a) Source # pabs :: forall (s :: S). Term s (PSum a :--> PSum a) Source # psignum :: forall (s :: S). Term s (PSum a :--> PSum a) Source # pfromInteger :: forall (s :: S). Integer -> Term s (PSum a) Source # | |
PShow a => PShow (PSum a) Source # | Since: 1.0.0 |
(forall (s' :: S). Num (Term s' a)) => Monoid (Term s (PSum a)) Source # | Since: 1.0.0 |
(forall (s' :: S). Num (Term s' a)) => Semigroup (Term s (PSum a)) Source # | Since: 1.0.0 |
Generic (PSum a s) Source # | |
type PSubcategory PSum Source # | |
Defined in Plutarch.Extra.Sum | |
type DPTStrat (PSum a) Source # | |
Defined in Plutarch.Extra.Sum | |
type PContravariant' (PSum a) Source # | |
Defined in Plutarch.Extra.Sum | |
type PCovariant' (PSum a) Source # | |
Defined in Plutarch.Extra.Sum | |
type PInner (PSum a) Source # | Since: 1.0.0 |
Defined in Plutarch.Extra.Sum | |
type PVariant' (PSum a) Source # | |
type Rep (PSum a s) Source # | Since: 1.0.0 |
Defined in Plutarch.Extra.Sum |