morley-1.18.0: Developer tools for the Michelson Language
Safe HaskellSafe-Inferred
LanguageHaskell2010

Morley.Michelson.Typed.Existential

Synopsis

SomeConstrainedValue and derivatives

data SomeConstrainedValue (c :: T -> Constraint) where Source #

Constructors

SomeConstrainedValue :: forall t c. c t => Value t -> SomeConstrainedValue c 

Bundled Patterns

pattern SomeValue :: () => SingI t => Value t -> SomeValue 
pattern SomeConstant :: () => ConstantScope t => Value t -> SomeConstant 
pattern SomeStorage :: () => StorageScope t => Value t -> SomeStorage 
pattern SomePackedVal :: () => PackedValScope t => Value t -> SomePackedVal 

Other existentials

data SomeContract where Source #

Constructors

SomeContract :: Contract cp st -> SomeContract 

Instances

Instances details
Show SomeContract Source # 
Instance details

Defined in Morley.Michelson.Typed.Existential

NFData SomeContract Source # 
Instance details

Defined in Morley.Michelson.Typed.Existential

Methods

rnf :: SomeContract -> () #

data SomeContractAndStorage where Source #

Represents a typed contract & a storage value of the type expected by the contract.

Constructors

SomeContractAndStorage :: forall cp st. (StorageScope st, ParameterScope cp) => Contract cp st -> Value st -> SomeContractAndStorage 

data SomeIsoValue where Source #

Hides some Haskell value put in line with Michelson Value.

Constructors

SomeIsoValue :: KnownIsoT a => a -> SomeIsoValue 

data SomeVBigMap where Source #

Constructors

SomeVBigMap :: forall k v. Value ('TBigMap k v) -> SomeVBigMap