Safe Haskell | None |
---|---|
Language | Haskell2010 |
Morley.Micheline.Expression
Description
Module that defines Expression type, its related types and its JSON instance.
Synopsis
- data Annotation
- data Expression
- data MichelinePrimAp = MichelinePrimAp {}
- newtype MichelinePrimitive = MichelinePrimitive Text
- michelsonPrimitive :: Seq Text
- annotToText :: Annotation -> Text
- annotFromText :: MonadFail m => Text -> m Annotation
Documentation
data Annotation Source #
Constructors
AnnotationType TypeAnn | |
AnnotationVariable VarAnn | |
AnnotationField FieldAnn |
Instances
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 |
Instances
data MichelinePrimAp Source #
Constructors
MichelinePrimAp | |
Fields |
Instances
newtype MichelinePrimitive Source #
Constructors
MichelinePrimitive Text |
Instances
annotToText :: Annotation -> Text Source #
annotFromText :: MonadFail m => Text -> m Annotation Source #