Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Plutarch.Test.SpecTypes
Description
Dummy types used in tests
Synopsis
- data Triplet a = Triplet a a a
- data PTriplet (a :: S -> Type) (s :: S) = PTriplet {
- ptriplet'a :: Term s (PAsData a)
- ptriplet'b :: Term s (PAsData a)
- ptriplet'c :: Term s (PAsData a)
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 |
data PTriplet (a :: S -> Type) (s :: S) Source #
We can defined a data-type using PDataRecord, with labeled fields.
Since: 1.0.0
Constructors
PTriplet | |
Fields
|
Instances
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 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)) | |
PlutusType (PTriplet a) Source # | |
Defined in Plutarch.Test.SpecTypes | |
Generic (PTriplet a s) Source # | |
Generic (PTriplet a s) Source # | |
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 PContravariant' (PTriplet a) Source # | |
Defined in Plutarch.Test.SpecTypes | |
type PCovariant' (PTriplet a) Source # | |
Defined in Plutarch.Test.SpecTypes | |
type PInner (PTriplet a) Source # | |
Defined in Plutarch.Test.SpecTypes | |
type PVariant' (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.0-fuAYjAg8ZoBBX6oal7xy2" 'False) (C1 ('MetaCons "PTriplet" 'PrefixI 'True) (S1 ('MetaSel ('Just "ptriplet'a") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData a))) :*: (S1 ('MetaSel ('Just "ptriplet'b") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData a))) :*: S1 ('MetaSel ('Just "ptriplet'c") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData a)))))) | |
type Code (PTriplet a s) Source # | |
Defined in Plutarch.Test.SpecTypes |