morley-0.3.0: Developer tools for the Michelson Language

Safe HaskellNone
LanguageHaskell2010

Michelson.Typed.CValue

Description

Module, containing CValue data type which represents Michelson comparable values.

Synopsis

Documentation

data CValue t where Source #

Representation of comparable value in Michelson language.

By specification, we're allowed to compare only following types: int, nat, string, bytes, mutez, bool, key_hash, timestamp, address.

Only these values can be used as map keys or set elements.

Instances
Eq (CValue t) Source # 
Instance details

Defined in Michelson.Typed.CValue

Methods

(==) :: CValue t -> CValue t -> Bool #

(/=) :: CValue t -> CValue t -> Bool #

Ord (CValue t) Source # 
Instance details

Defined in Michelson.Typed.CValue

Methods

compare :: CValue t -> CValue t -> Ordering #

(<) :: CValue t -> CValue t -> Bool #

(<=) :: CValue t -> CValue t -> Bool #

(>) :: CValue t -> CValue t -> Bool #

(>=) :: CValue t -> CValue t -> Bool #

max :: CValue t -> CValue t -> CValue t #

min :: CValue t -> CValue t -> CValue t #

Show (CValue t) Source # 
Instance details

Defined in Michelson.Typed.CValue

Methods

showsPrec :: Int -> CValue t -> ShowS #

show :: CValue t -> String #

showList :: [CValue t] -> ShowS #

Arbitrary (CValue CInt) Source # 
Instance details

Defined in Michelson.Test.Gen

Arbitrary (CValue CMutez) Source # 
Instance details

Defined in Michelson.Test.Gen

Arbitrary (CValue CKeyHash) Source # 
Instance details

Defined in Michelson.Test.Gen

Arbitrary (CValue CTimestamp) Source # 
Instance details

Defined in Michelson.Test.Gen