csound-expression-dynamic-0.3.2: dynamic core for csound-expression library

Safe HaskellNone
LanguageHaskell98

Csound.Dynamic.Render.Pretty

Synopsis

Documentation

data Doc :: * #

The abstract data type Doc represents pretty documents.

Doc is an instance of the Show class. (show doc) pretty prints document doc with a page width of 100 characters and a ribbon width of 40 characters.

show (text "hello" <$> text "world")

Which would return the string "hello\nworld", i.e.

hello
world

Instances

Show Doc 

Methods

showsPrec :: Int -> Doc -> ShowS #

show :: Doc -> String #

showList :: [Doc] -> ShowS #

Pretty Doc 

Methods

pretty :: Doc -> Doc #

prettyList :: [Doc] -> Doc #

ppCsdFile :: Doc -> Doc -> Doc -> [Plugin] -> Doc Source #

ppGen :: Int -> Gen -> Doc Source #

ppStmt :: [RatedVar] -> Exp RatedVar -> State TabDepth Doc Source #