indigo-0.1.0.0: Convenient imperative eDSL over Lorentz.
Safe HaskellNone
LanguageHaskell2010

Indigo.Print

Description

Module containing pretty-printing of Indigo contracts

Synopsis

Documentation

printIndigoContract Source #

Arguments

:: forall param st. (IsObject st, NiceParameterFull param, NiceStorage st) 
=> Bool

Force result to be single line

-> IndigoContract param st 
-> LText 

Pretty-print an Indigo contract into Michelson code.

printAsMichelson :: forall param st m. (IsObject st, NiceParameterFull param, NiceStorage st, MonadIO m) => IndigoContract param st -> m () Source #

Prints the pretty-printed Michelson code of an Indigo contract to the standard output.

This is intended to be easy to use for newcomers.

saveAsMichelson :: forall param st m. (IsObject st, NiceParameterFull param, NiceStorage st, MonadIO m, MonadMask m) => IndigoContract param st -> FilePath -> m () Source #

Saves the pretty-printed Michelson code of an Indigo contract to the given file.

This is intended to be easy to use for newcomers.