indigo-0.2.2: 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.

renderIndigoDoc :: forall param st. (IsObject st, NiceParameterFull param) => IndigoContract param st -> LText Source #

Generate an Indigo contract documentation.

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.

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

Print the generated documentation to the standard output.

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

Save the generated documentation to the given file.