csound-expression-dynamic-0.3.7: dynamic core for csound-expression library
Safe HaskellNone
LanguageHaskell2010

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

Instances details
Show Doc 
Instance details

Defined in Text.PrettyPrint.Leijen

Methods

showsPrec :: Int -> Doc -> ShowS #

show :: Doc -> String #

showList :: [Doc] -> ShowS #

Semigroup Doc

The document (x <> y) concatenates document x and document y. It is an associative operation having empty as a left and right unit. (infixr 6)

Instance details

Defined in Text.PrettyPrint.Leijen

Methods

(<>) :: Doc -> Doc -> Doc #

sconcat :: NonEmpty Doc -> Doc #

stimes :: Integral b => b -> Doc -> Doc #

Monoid Doc 
Instance details

Defined in Text.PrettyPrint.Leijen

Methods

mempty :: Doc #

mappend :: Doc -> Doc -> Doc #

mconcat :: [Doc] -> Doc #

Pretty Doc 
Instance details

Defined in Text.PrettyPrint.Leijen

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 #