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

Morley.Michelson.Typed.ClassifiedInstr.Internal.TH

Description

TH code for generating classification boilerplate.

Synopsis

Documentation

generateClassifiedInstr :: DecsQ Source #

Generate ClassifiedInstr from Instr.

toName :: forall a. (Enum a, Show a) => a -> Name Source #

A dirty hack to turn a enum value into its corresponding Name

classifyInstrTH :: Name -> [Type] -> TypeQ Source #

Based on instruction constructor name and types of its arguments, generate its classification.

generateInstrToWCI :: Name -> DecsQ Source #

Generate the function converting from Instr to WellClassifiedInstr existential.