Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- class PlutusType (a :: PType)
- type family PlutusTypeStratConstraint strategy :: PType -> Constraint
- type PCon = PlutusType
- type PMatch = PlutusType
- pcon' :: forall s. PlutusType a => a s -> Term s (PInner a)
- pmatch' :: forall s b. PlutusType a => Term s (PInner a) -> (a s -> Term s b) -> Term s b
- pmatch :: PlutusType a => Term s a -> (a s -> Term s b) -> Term s b
- pcon :: PlutusType a => a s -> Term s a
- type family PInner a :: PType
- class PlutusTypeStrat (strategy :: Type)
- class (PInner a ~ DerivedPInner (DPTStrat a) a, PlutusTypeStrat (DPTStrat a), PlutusTypeStratConstraint (DPTStrat a) a, PlutusType a) => DerivePlutusType (a :: PType)
- type family DPTStrat a :: Type
- type family DerivedPInner strategy (a :: PType) :: PType
- derivedPCon :: forall a s. (PlutusTypeStrat strategy, DerivePlutusType a, DPTStrat a ~ strategy) => a s -> Term s (DerivedPInner strategy a)
- derivedPMatch :: forall a s b. (PlutusTypeStrat strategy, DerivePlutusType a, DPTStrat a ~ strategy) => Term s (DerivedPInner strategy a) -> (a s -> Term s b) -> Term s b
- class (forall t. PVariant'' t => PVariant'' (a t)) => PVariant a
- class (forall t. PCovariant'' t => PCovariant'' (a t)) => PCovariant a
- class (forall t. PCovariant'' t => PContravariant'' (a t)) => PContravariant a
- type family PVariant' a :: Constraint
- type family PCovariant' a :: Constraint
- type family PContravariant' a :: Constraint
Documentation
class PlutusType (a :: PType) Source #
Instances
type family PlutusTypeStratConstraint strategy :: PType -> Constraint Source #
Instances
type PlutusTypeStratConstraint PlutusTypeData Source # | |
Defined in Plutarch.DataRepr.Internal | |
type PlutusTypeStratConstraint PlutusTypeNewtype Source # | |
Defined in Plutarch.Internal.Newtype | |
type PlutusTypeStratConstraint PlutusTypeScott Source # | |
Defined in Plutarch.Internal.ScottEncoding |
type PCon = PlutusType Source #
Deprecated: Use PlutusType
type PMatch = PlutusType Source #
Deprecated: Use PlutusType
pmatch :: PlutusType a => Term s a -> (a s -> Term s b) -> Term s b Source #
Pattern match over Plutarch Terms via a Haskell datatype
pcon :: PlutusType a => a s -> Term s a Source #
Construct a Plutarch Term via a Haskell datatype
type family PInner a :: PType Source #
Instances
class PlutusTypeStrat (strategy :: Type) Source #
Instances
class (PInner a ~ DerivedPInner (DPTStrat a) a, PlutusTypeStrat (DPTStrat a), PlutusTypeStratConstraint (DPTStrat a) a, PlutusType a) => DerivePlutusType (a :: PType) Source #
Instances
type family DPTStrat a :: Type Source #
Instances
type family DerivedPInner strategy (a :: PType) :: PType Source #
Instances
type DerivedPInner PlutusTypeData a Source # | |
Defined in Plutarch.DataRepr.Internal | |
type DerivedPInner PlutusTypeNewtype a Source # | |
Defined in Plutarch.Internal.Newtype | |
type DerivedPInner PlutusTypeScott a Source # | |
Defined in Plutarch.Internal.ScottEncoding |
derivedPCon :: forall a s. (PlutusTypeStrat strategy, DerivePlutusType a, DPTStrat a ~ strategy) => a s -> Term s (DerivedPInner strategy a) Source #
derivedPMatch :: forall a s b. (PlutusTypeStrat strategy, DerivePlutusType a, DPTStrat a ~ strategy) => Term s (DerivedPInner strategy a) -> (a s -> Term s b) -> Term s b Source #
class (forall t. PVariant'' t => PVariant'' (a t)) => PVariant a Source #
Instances
(forall (t :: PType). PVariant'' t => PVariant'' (a t)) => PVariant a Source # | |
Defined in Plutarch.Internal.PlutusType |
class (forall t. PCovariant'' t => PCovariant'' (a t)) => PCovariant a Source #
Instances
(forall (t :: PType). PCovariant'' t => PCovariant'' (a t)) => PCovariant a Source # | |
Defined in Plutarch.Internal.PlutusType |
class (forall t. PCovariant'' t => PContravariant'' (a t)) => PContravariant a Source #
Instances
(forall (t :: PType). PCovariant'' t => PContravariant'' (a t)) => PContravariant a Source # | |
Defined in Plutarch.Internal.PlutusType |
type family PVariant' a :: Constraint Source #
Instances
type family PCovariant' a :: Constraint Source #
Instances
type family PContravariant' a :: Constraint Source #