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

Language.Drasil.Plain.Print

Description

Defines functions to print on plain files (for .txt, .log, etc.).

Synopsis

Types

data Linearity Source #

Data is either linear or not.

Constructors

Linear 
Nonlinear 

Functions

exprDoc :: ChunkDB -> Stage -> Linearity -> Expr -> Doc Source #

Create expressions for a document in Doc format.

codeExprDoc :: ChunkDB -> Stage -> Linearity -> CodeExpr -> Doc Source #

Create code expressions for a document in Doc format.

sentenceDoc :: ChunkDB -> Stage -> Linearity -> Sentence -> Doc Source #

Create sentences for a document in Doc format.

symbolDoc :: Symbol -> Doc Source #

Create symbols for a document in Doc format.

unitDoc :: Linearity -> USymb -> Doc Source #

Helper for printing units in Doc format.

showSymb :: Symbol -> String Source #

Helper for printing Symbols

showHasSymbImpl :: HasSymbol x => x -> String Source #

Helper for printing a HasSymbol in Implementation Stage