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

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.