morley-0.3.0.1: Developer tools for the Michelson Language

Safe HaskellNone
LanguageHaskell2010

Michelson.Interpret.Unpack

Description

Module, carrying logic of UNPACK instruction.

This is nearly symmetric to adjacent Pack.hs module.

When implementing this the following sources were used:

Synopsis

Documentation

newtype UnpackError Source #

Any decoding error.

Constructors

UnpackError 

Fields

unpackValue :: (SingI t, HasNoOp t, HasNoBigMap t) => UnpackEnv -> LByteString -> Either UnpackError (Value t) Source #

Deserialize bytes into the given value. Suitable for UNPACK operation only.

unpackValue' :: (SingI t, HasNoOp t, HasNoBigMap t) => UnpackEnv -> ByteString -> Either UnpackError (Value t) Source #

Like unpackValue, for strict byte array.