Safe Haskell | None |
---|---|
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
Includes uni Text => Lift uni BuiltinString Source # | |
Defined in PlutusTx.Lift.Instances lift :: BuiltinString -> RTCompile uni fun (Term TyName Name uni fun ()) Source # | |
Includes uni ByteString => Lift uni BuiltinByteString Source # | |
Defined in PlutusTx.Lift.Instances lift :: BuiltinByteString -> RTCompile uni fun (Term TyName Name uni fun ()) Source # | |
Includes uni Data => Lift uni BuiltinData Source # | |
Defined in PlutusTx.Lift.Instances lift :: BuiltinData -> RTCompile uni fun (Term TyName Name uni fun ()) Source # | |
Includes uni ByteString => Lift uni ByteString Source # | |
Defined in PlutusTx.Lift.Instances | |
Includes uni Integer => Lift uni Integer Source # | |
(TypeError ('Text "Int is not supported, use Integer instead") :: Constraint) => Lift uni Int Source # | |
Lift DefaultUni Bool Source # | |
Lift DefaultUni () Source # | |
Defined in PlutusTx.Lift.Instances | |
Lift DefaultUni Data Source # | |
Lift DefaultUni Rational Source # | |
Lift DefaultUni Sqrt Source # | |
(FromBuiltin arep a, Includes uni [a]) => Lift uni (BuiltinList arep) Source # | |
Defined in PlutusTx.Lift.Instances lift :: BuiltinList arep -> RTCompile uni fun (Term TyName Name uni fun ()) Source # | |
(Typeable DefaultUni a, Lift DefaultUni a) => Lift DefaultUni [a] Source # | |
Defined in PlutusTx.Lift.Instances | |
(Typeable DefaultUni a, Lift DefaultUni a) => Lift DefaultUni (Maybe a) Source # | |
(Typeable DefaultUni a, Typeable DefaultUni b, Lift DefaultUni a, Lift DefaultUni b) => Lift DefaultUni (Either 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 | |
Lift DefaultUni [(k, v)] => Lift DefaultUni (Map k v) 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 |
withTyVars :: MonadReader (LocalVars uni) m => [(Name, TyVarDecl TyName ())] -> m a -> m a Source #
UnsupportedLiftKind Kind | |
UnsupportedLiftType Type | |
UserLiftError Text | |
LiftMissingDataCons Name | |
LiftMissingVar Name |