| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Morley.Michelson.Interpret.Pack
Description
Module, carrying logic of PACK instruction.
This is nearly symmetric to adjacent Unpack.hs module.
Synopsis
- packValue :: PackedValScope t => Value t -> LByteString
- packValue' :: PackedValScope t => Value t -> ByteString
- packValuePrefix :: IsString s => s
- toBinary :: ToExpression a => a -> LByteString
- toBinary' :: ToExpression a => a -> ByteString
Documentation
packValue :: PackedValScope t => Value t -> LByteString Source #
Serialize a value given to PACK instruction.
packValue' :: PackedValScope t => Value t -> ByteString Source #
Same as packValue, for strict bytestring.
packValuePrefix :: IsString s => s Source #
Prefix prepended to the binary representation of a value.
toBinary :: ToExpression a => a -> LByteString Source #
Generic serializer.
toBinary' :: ToExpression a => a -> ByteString Source #
Same as toBinary, for strict bytestring.