morley-1.10.0: Developer tools for the Michelson Language
Safe HaskellNone
LanguageHaskell2010

Morley.Micheline.Expression

Description

Module that defines Expression type, its related types and its JSON instance.

Synopsis

Documentation

data Expression Source #

Type for Micheline Expression

Constructors

ExpressionInt Integer

Micheline represents both nats and ints using the same decimal format. The Haskell Integer type spans all possible values that the final (Michelson) type could end up being, and then some, so we use (StringEncode Integer) to represent all integral values here for easy JSON encoding compatibility.

ExpressionString Text 
ExpressionBytes ByteString 
ExpressionSeq (Seq Expression) 
ExpressionPrim MichelinePrimAp 

newtype MichelinePrimitive Source #

Constructors

MichelinePrimitive Text