| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Plutarch.Test.SpecTypes
Description
Dummy types used in tests
Documentation
Tuple of three elements of the same type
Since: 1.0.0
Constructors
| Triplet a a a |
Instances
| Arbitrary a => Arbitrary (Triplet a) Source # | Since: 1.0.0 |
| Show a => Show (Triplet a) Source # | |
| Eq a => Eq (Triplet a) Source # | |
| Ord a => Ord (Triplet a) Source # | |
Defined in Plutarch.Test.SpecTypes | |
| FromData a => FromData (Triplet a) Source # | |
Defined in Plutarch.Test.SpecTypes Methods fromBuiltinData :: BuiltinData -> Maybe (Triplet a) | |
| ToData a => ToData (Triplet a) Source # | |
Defined in Plutarch.Test.SpecTypes Methods toBuiltinData :: Triplet a -> BuiltinData | |
| UnsafeFromData a => UnsafeFromData (Triplet a) Source # | |
Defined in Plutarch.Test.SpecTypes Methods unsafeFromBuiltinData :: BuiltinData -> Triplet a | |
| Pretty a => Pretty (Triplet a) Source # | |
Defined in Plutarch.Test.SpecTypes | |
newtype PTriplet (a :: S -> Type) (s :: S) Source #
We can defined a data-type using PDataRecord, with labeled fields.
With an appropriate instance of PIsDataRepr, we can automatically
derive PDataFields.
Since: 1.0.0
Constructors
| PTriplet (Term s (PDataRecord '["x" ':= a, "y" ':= a, "z" ':= a])) |
Instances
| PDataFields (PTriplet a) Source # | |||||||||
Defined in Plutarch.Test.SpecTypes Associated Types
| |||||||||
| PEq (PTriplet a) Source # | |||||||||
Defined in Plutarch.Test.SpecTypes | |||||||||
| PIsData (PTriplet a) Source # | |||||||||
Defined in Plutarch.Test.SpecTypes Methods pfromDataImpl :: forall (s :: S). Term s (PAsData (PTriplet a)) -> Term s (PTriplet a) pdataImpl :: forall (s :: S). Term s (PTriplet a) -> Term s PData | |||||||||
| (ToData (AsHaskell a), FromData (AsHaskell a)) => PLiftable (PTriplet a) Source # | |||||||||
Defined in Plutarch.Test.SpecTypes Associated Types
Methods haskToRepr :: AsHaskell (PTriplet a) -> PlutusRepr (PTriplet a) reprToHask :: PlutusRepr (PTriplet a) -> Either LiftError (AsHaskell (PTriplet a)) reprToPlut :: forall (s :: S). PlutusRepr (PTriplet a) -> PLifted s (PTriplet a) plutToRepr :: (forall (s :: S). PLifted s (PTriplet a)) -> Either LiftError (PlutusRepr (PTriplet a)) | |||||||||
| (POrd a, PIsData a) => POrd (PTriplet a) Source # | |||||||||
Defined in Plutarch.Test.SpecTypes Methods (#<=) :: forall (s :: S). Term s (PTriplet a) -> Term s (PTriplet a) -> Term s PBool (#<) :: forall (s :: S). Term s (PTriplet a) -> Term s (PTriplet a) -> Term s PBool pmax :: forall (s :: S). Term s (PTriplet a) -> Term s (PTriplet a) -> Term s (PTriplet a) pmin :: forall (s :: S). Term s (PTriplet a) -> Term s (PTriplet a) -> Term s (PTriplet a) | |||||||||
| DerivePlutusType (PTriplet a) Source # | Since: 1.0.0 | ||||||||
Defined in Plutarch.Test.SpecTypes Associated Types
| |||||||||
| PlutusType (PTriplet a) Source # | |||||||||
Defined in Plutarch.Test.SpecTypes Associated Types
| |||||||||
| Generic (PTriplet a s) Source # | |||||||||
Defined in Plutarch.Test.SpecTypes Associated Types
| |||||||||
| type PFields (PTriplet a) Source # | |||||||||
Defined in Plutarch.Test.SpecTypes | |||||||||
| type AsHaskell (PTriplet a) Source # | Since: 1.0.0 | ||||||||
Defined in Plutarch.Test.SpecTypes | |||||||||
| type PlutusRepr (PTriplet a) Source # | |||||||||
Defined in Plutarch.Test.SpecTypes | |||||||||
| type DPTStrat (PTriplet a) Source # | |||||||||
Defined in Plutarch.Test.SpecTypes type DPTStrat (PTriplet a) = PlutusTypeData | |||||||||
| type PInner (PTriplet a) Source # | |||||||||
Defined in Plutarch.Test.SpecTypes | |||||||||
| type Rep (PTriplet a s) Source # | |||||||||
Defined in Plutarch.Test.SpecTypes type Rep (PTriplet a s) = D1 ('MetaData "PTriplet" "Plutarch.Test.SpecTypes" "plutarch-testlib-1.0.3-8LPOzxhYpdt6V7ATSti3SW" 'True) (C1 ('MetaCons "PTriplet" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PDataRecord '["x" ':= a, "y" ':= a, "z" ':= a]))))) | |||||||||