morley-1.15.1: Developer tools for the Michelson Language
Safe HaskellNone
LanguageHaskell2010

Michelson.Typed.Convert

Synopsis

Documentation

convertContractCode :: forall param store. (SingI param, SingI store) => ContractCode param store -> Contract Source #

untypeDemoteT :: forall (t :: T). SingI t => Ty Source #

sampleTypedValue :: Sing t -> Maybe (Value t) Source #

Generate a value used for generating examples in documentation.

Since not for all types it is possible to produce a sensible example, the result is optional. E.g. for operations, never, not proper types like contract operation we return Nothing.

Misc

flattenEntrypoints :: SingI t => ParamNotes t -> Map EpName Ty Source #

Flatten a provided list of notes to a map of its entrypoints and its corresponding utype. Please refer to mkEntrypointsMap in regards to how duplicate entrypoints are handled.

Orphan instances

SingI s => Eq (TestAssert s) Source # 
Instance details

Methods

(==) :: TestAssert s -> TestAssert s -> Bool #

(/=) :: TestAssert s -> TestAssert s -> Bool #

Eq (Instr inp out) Source # 
Instance details

Methods

(==) :: Instr inp out -> Instr inp out -> Bool #

(/=) :: Instr inp out -> Instr inp out -> Bool #

(SingI t, HasNoOp t) => Buildable (Value' Instr t) Source # 
Instance details

Methods

build :: Value' Instr t -> Builder #

Buildable (Instr inp out) Source # 
Instance details

Methods

build :: Instr inp out -> Builder #

RenderDoc (Instr inp out) Source # 
Instance details

Methods

renderDoc :: RenderContext -> Instr inp out -> Doc Source #

isRenderable :: Instr inp out -> Bool Source #