Safe Haskell | None |
---|---|
Language | Haskell2010 |
Apply some transformations to Michelson code.
Synopsis
- transformStrings :: Bool -> (MText -> MText) -> Instr inp out -> Instr inp out
- transformBytes :: Bool -> (ByteString -> ByteString) -> Instr inp out -> Instr inp out
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.