indigo-0.6.0: Convenient imperative eDSL over Lorentz.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Indigo.Print

Description

Module containing pretty-printing of Indigo contracts

Synopsis

Documentation

printIndigoContract Source #

Arguments

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

Force result to be single line

-> CommentSettings 
-> IndigoContract param st 
-> LText 

Pretty-print an Indigo contract into Michelson code.

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

Generate an Indigo contract documentation.

printAsMichelson :: forall param st m. (IsObject st, NiceParameterFull param, NiceStorageFull st, MonadIO m) => CommentSettings -> 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, NiceStorageFull st, MonadIO m, MonadMask m) => CommentSettings -> 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, NiceStorageFull st, MonadIO m) => IndigoContract param st -> m () Source #

Print the generated documentation to the standard output.

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

Save the generated documentation to the given file.