Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class Typeable uni (a :: k) where Source #
Class for types which have a corresponding Plutus IR type. Instances should always be derived, do not write your own instance!
typeRep :: Proxy a -> RTCompile uni fun (Type TyName uni ()) Source #
Get the Plutus IR type corresponding to this type.
Instances
class Lift uni a where Source #
Class for types which can be lifted into Plutus IR. Instances should be derived, do not write your own instance!
lift :: a -> RTCompile uni fun (Term TyName Name uni fun ()) Source #
Get a Plutus IR term corresponding to the given value.
Instances
Lift DefaultUni Rational Source # | |
Lift DefaultUni Sqrt Source # | |
Lift DefaultUni () Source # | |
Defined in PlutusTx.Lift.Instances | |
Lift DefaultUni Bool Source # | |
HasTermLevel uni Element => Lift uni BuiltinBLS12_381_G1_Element Source # | |
Defined in PlutusTx.Lift.Class lift :: BuiltinBLS12_381_G1_Element -> RTCompile uni fun (Term TyName Name uni fun ()) Source # | |
HasTermLevel uni Element => Lift uni BuiltinBLS12_381_G2_Element Source # | |
Defined in PlutusTx.Lift.Class lift :: BuiltinBLS12_381_G2_Element -> RTCompile uni fun (Term TyName Name uni fun ()) Source # | |
HasTermLevel uni MlResult => Lift uni BuiltinBLS12_381_MlResult Source # | |
Defined in PlutusTx.Lift.Class lift :: BuiltinBLS12_381_MlResult -> RTCompile uni fun (Term TyName Name uni fun ()) Source # | |
HasTermLevel uni Bool => Lift uni BuiltinBool Source # | |
Defined in PlutusTx.Lift.Class lift :: BuiltinBool -> RTCompile uni fun (Term TyName Name uni fun ()) Source # | |
HasTermLevel uni ByteString => Lift uni BuiltinByteString Source # | |
Defined in PlutusTx.Lift.Class lift :: BuiltinByteString -> RTCompile uni fun (Term TyName Name uni fun ()) Source # | |
HasTermLevel uni Data => Lift uni BuiltinData Source # | |
Defined in PlutusTx.Lift.Class lift :: BuiltinData -> RTCompile uni fun (Term TyName Name uni fun ()) Source # | |
HasTermLevel uni Integer => Lift uni BuiltinInteger Source # | |
Defined in PlutusTx.Lift.Class lift :: BuiltinInteger -> RTCompile uni fun (Term TyName Name uni fun ()) Source # | |
HasTermLevel uni Text => Lift uni BuiltinString Source # | |
Defined in PlutusTx.Lift.Class lift :: BuiltinString -> RTCompile uni fun (Term TyName Name uni fun ()) Source # | |
HasTermLevel uni () => Lift uni BuiltinUnit Source # | |
Defined in PlutusTx.Lift.Class lift :: BuiltinUnit -> RTCompile uni fun (Term TyName Name uni fun ()) Source # | |
(TypeError ('Text "Int is not supported, use Integer instead") :: Constraint) => Lift uni Int Source # | |
(Typeable DefaultUni a, Lift DefaultUni a) => Lift DefaultUni (Maybe a) Source # | |
(Typeable DefaultUni a, Lift DefaultUni a) => Lift DefaultUni [a] Source # | |
Defined in PlutusTx.Lift.Instances | |
(HasFromBuiltin arep, HasTermLevel uni [FromBuiltin arep]) => Lift uni (BuiltinList arep) Source # | |
Defined in PlutusTx.Lift.Class lift :: BuiltinList arep -> RTCompile uni fun (Term TyName Name uni fun ()) Source # | |
(Typeable DefaultUni a, Typeable DefaultUni b, Lift DefaultUni a, Lift DefaultUni b) => Lift DefaultUni (Either a b) Source # | |
Lift DefaultUni [(k, v)] => Lift DefaultUni (Map k v) Source # | |
Lift DefaultUni (Map k a) Source # | |
(Typeable DefaultUni a, Typeable DefaultUni b, Lift DefaultUni a, Lift DefaultUni b) => Lift DefaultUni (These a b) Source # | |
(Typeable DefaultUni a, Typeable DefaultUni b, Lift DefaultUni a, Lift DefaultUni b) => Lift DefaultUni (a, b) Source # | |
Defined in PlutusTx.Lift.Instances | |
(HasFromBuiltin arep, HasFromBuiltin brep, HasTermLevel uni (FromBuiltin arep, FromBuiltin brep)) => Lift uni (BuiltinPair arep brep) Source # | |
Defined in PlutusTx.Lift.Class lift :: BuiltinPair arep brep -> RTCompile uni fun (Term TyName Name uni fun ()) Source # | |
(Typeable DefaultUni a, Typeable DefaultUni b, Typeable DefaultUni c, Lift DefaultUni a, Lift DefaultUni b, Lift DefaultUni c) => Lift DefaultUni (a, b, c) Source # | |
Defined in PlutusTx.Lift.Instances | |
(Typeable DefaultUni a, Typeable DefaultUni b, Typeable DefaultUni c, Typeable DefaultUni d, Lift DefaultUni a, Lift DefaultUni b, Lift DefaultUni c, Lift DefaultUni d) => Lift DefaultUni (a, b, c, d) Source # | |
Defined in PlutusTx.Lift.Instances | |
(Typeable DefaultUni a, Typeable DefaultUni b, Typeable DefaultUni c, Typeable DefaultUni d, Typeable DefaultUni e, Lift DefaultUni a, Lift DefaultUni b, Lift DefaultUni c, Lift DefaultUni d, Lift DefaultUni e) => Lift DefaultUni (a, b, c, d, e) Source # | |
Defined in PlutusTx.Lift.Instances |