drasil-printers-0.1.10.0: A framework for code and document generation for scientific software - Printers SubPackage
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Drasil.Printing.Import.ModelExpr

Description

Defines functions to render CodeExprs as printable Exprs.

Synopsis

Documentation

modelExpr :: ModelExpr -> PrintingInformation -> Expr Source #

Translate Exprs to printable layout AST.

modelExpr' :: PrintingInformation -> Int -> ModelExpr -> Expr Source #

Helper that adds parenthesis to a display expression where appropriate.