Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 #
Instances
data Expression Source #
Type for Micheline Expression
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 #
Instances
newtype MichelinePrimitive Source #
Instances
annotToText :: Annotation -> Text Source #
annotFromText :: MonadFail m => Text -> m Annotation Source #