Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Plutarch.Builtin.Data
Synopsis
- newtype PData (s :: S) = PData (Term s PData)
- newtype PAsData (a :: S -> Type) (s :: S) = PAsData (Term s a)
- pchooseData :: Term s (PData :--> (a :--> (a :--> (a :--> (a :--> (a :--> a))))))
- pasConstr :: Term s (PData :--> PBuiltinPair PInteger (PBuiltinList PData))
- pasMap :: Term s (PData :--> PBuiltinList (PBuiltinPair PData PData))
- plistData :: Term s (PBuiltinList PData :--> PData)
- pasList :: Term s (PData :--> PBuiltinList PData)
- pasInt :: Term s (PData :--> PInteger)
- pasByteStr :: Term s (PData :--> PByteString)
- pserialiseData :: Term s (PData :--> PByteString)
- pconstrBuiltin :: Term s (PInteger :--> (PBuiltinList PData :--> PAsData (PBuiltinPair PInteger (PBuiltinList PData))))
- newtype PBuiltinPair (a :: S -> Type) (b :: S -> Type) (s :: S) = PBuiltinPair (Term s (PBuiltinPair a b))
- pfstBuiltin :: Term s (PBuiltinPair a b :--> a)
- psndBuiltin :: Term s (PBuiltinPair a b :--> b)
- ppairDataBuiltin :: Term s (PAsData a :--> (PAsData b :--> PBuiltinPair (PAsData a) (PAsData b)))
- data PBuiltinList (a :: S -> Type) (s :: S)
- = PCons (Term s a) (Term s (PBuiltinList a))
- | PNil
- pheadBuiltin :: Term s (PBuiltinList a :--> a)
- ptailBuiltin :: Term s (PBuiltinList a :--> PBuiltinList a)
- pchooseListBuiltin :: Term s (PBuiltinList a :--> (b :--> (b :--> b)))
- pnullBuiltin :: Term s (PBuiltinList a :--> PBool)
- pconsBuiltin :: Term s (a :--> (PBuiltinList a :--> PBuiltinList a))
Documentation
newtype PData (s :: S) Source #
Instances
newtype PAsData (a :: S -> Type) (s :: S) Source #
Instances
pasConstr :: Term s (PData :--> PBuiltinPair PInteger (PBuiltinList PData)) Source #
pasMap :: Term s (PData :--> PBuiltinList (PBuiltinPair PData PData)) Source #
pasByteStr :: Term s (PData :--> PByteString) Source #
pserialiseData :: Term s (PData :--> PByteString) Source #
Serialise any builtin data to its cbor represented by a builtin bytestring
pconstrBuiltin :: Term s (PInteger :--> (PBuiltinList PData :--> PAsData (PBuiltinPair PInteger (PBuiltinList PData)))) Source #
newtype PBuiltinPair (a :: S -> Type) (b :: S -> Type) (s :: S) Source #
Constructors
PBuiltinPair (Term s (PBuiltinPair a b)) |
Instances
pfstBuiltin :: Term s (PBuiltinPair a b :--> a) Source #
psndBuiltin :: Term s (PBuiltinPair a b :--> b) Source #
ppairDataBuiltin :: Term s (PAsData a :--> (PAsData b :--> PBuiltinPair (PAsData a) (PAsData b))) Source #
data PBuiltinList (a :: S -> Type) (s :: S) Source #
Plutus BuiltinList
Constructors
PCons (Term s a) (Term s (PBuiltinList a)) | |
PNil |
Instances
pheadBuiltin :: Term s (PBuiltinList a :--> a) Source #
ptailBuiltin :: Term s (PBuiltinList a :--> PBuiltinList a) Source #
pchooseListBuiltin :: Term s (PBuiltinList a :--> (b :--> (b :--> b))) Source #
pnullBuiltin :: Term s (PBuiltinList a :--> PBool) Source #
pconsBuiltin :: Term s (a :--> (PBuiltinList a :--> PBuiltinList a)) Source #