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

Morley.Michelson.Preprocess

Description

Apply some transformations to Michelson code.

Synopsis

Documentation

transformStrings :: Bool -> (MText -> MText) -> Instr inp out -> Instr inp out Source #

Transform all strings in a typed instructions using given function. The first argument specifies whether we should go into arguments that contain instructions.

transformBytes :: Bool -> (ByteString -> ByteString) -> Instr inp out -> Instr inp out Source #

Similar to transformStrings but for bytes.