plutarch-1.9.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Plutarch.Internal.Generic

Synopsis

Plutarch adapters for generics-sop API

class (forall s. PGeneric' a s) => PGeneric a Source #

Generic constraint extended to work with Plutarch types.

Instances

Instances details
(forall (s :: S). PGeneric' a s) => PGeneric a Source # 
Instance details

Defined in Plutarch.Internal.Generic

class (Generic (a s), GFrom (a s), GTo (a s), All2 Top (PCode a), All2 Top (GCode (a s)), GDatatypeInfo (a s)) => PGeneric' a s Source #

Instances

Instances details
(Generic (a s), GFrom (a s), GTo (a s), All2 (Top :: PType -> Constraint) (PCode a), All2 (Top :: Type -> Constraint) (GCode (a s)), GDatatypeInfo (a s)) => PGeneric' a s Source # 
Instance details

Defined in Plutarch.Internal.Generic

type PCode a = ToPType2 (GCode (a Any)) Source #

Like Code but for Plutarch types

gpfrom :: forall a s. PGeneric a => a s -> SOP (Term s) (PCode a) Source #

gpto :: forall a s. PGeneric a => SOP (Term s) (PCode a) -> a s Source #