Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module that provides type classes for converting to and from low-level Micheline representation.
Synopsis
- class ToExpression a where
- toExpression :: a -> Expression
- data FromExpressionError = FromExpressionError UnpackError
- class FromExpression a where
Documentation
class ToExpression a where Source #
Type class that provides an ability to convert something to Micheline Expression.
toExpression :: a -> Expression Source #
Instances
ToExpression T Source # | |
Defined in Morley.Micheline.Class toExpression :: T -> Expression Source # | |
SingI t => ToExpression (Notes t) Source # | |
Defined in Morley.Micheline.Class toExpression :: Notes t -> Expression Source # | |
(SingI t, HasNoOp t) => ToExpression (Value t) Source # | |
Defined in Morley.Micheline.Class toExpression :: Value t -> Expression Source # | |
ToExpression (Contract cp st) Source # | |
Defined in Morley.Micheline.Class toExpression :: Contract cp st -> Expression Source # | |
ToExpression (Instr inp out) Source # | |
Defined in Morley.Micheline.Class toExpression :: Instr inp out -> Expression Source # |
data FromExpressionError Source #
Errors that can happen when we convert an Expression
to our
data type.
Instances
Eq FromExpressionError Source # | |
Defined in Morley.Micheline.Class (==) :: FromExpressionError -> FromExpressionError -> Bool # (/=) :: FromExpressionError -> FromExpressionError -> Bool # | |
Show FromExpressionError Source # | |
Defined in Morley.Micheline.Class showsPrec :: Int -> FromExpressionError -> ShowS # show :: FromExpressionError -> String # showList :: [FromExpressionError] -> ShowS # | |
Exception FromExpressionError Source # | |
Defined in Morley.Micheline.Class | |
Buildable FromExpressionError Source # | |
Defined in Morley.Micheline.Class build :: FromExpressionError -> Builder # |
class FromExpression a where Source #
Type class that provides the ability to convert something from a Micheline Expression.
Instances
FromExpression Contract Source # | |
Defined in Morley.Micheline.Class | |
FromExpression [ExpandedOp] Source # | |
Defined in Morley.Micheline.Class | |
UnpackedValScope t => FromExpression (Value t) Source # | |
Defined in Morley.Micheline.Class fromExpression :: Expression -> Either FromExpressionError (Value t) Source # |