csound-expression-dynamic-0.3.9.1: dynamic core for csound-expression library
Safe HaskellSafe-Inferred
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
IsString Doc 
Instance details

Defined in Text.PrettyPrint.Leijen.Text

Methods

fromString :: String -> Doc #

Monoid Doc 
Instance details

Defined in Text.PrettyPrint.Leijen.Text

Methods

mempty :: Doc #

mappend :: Doc -> Doc -> Doc #

mconcat :: [Doc] -> Doc #

Semigroup Doc

In particular, note that 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.Text

Methods

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

sconcat :: NonEmpty Doc -> Doc #

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

Show Doc 
Instance details

Defined in Text.PrettyPrint.Leijen.Text

Methods

showsPrec :: Int -> Doc -> ShowS #

show :: Doc -> String #

showList :: [Doc] -> ShowS #

Pretty Doc 
Instance details

Defined in Text.PrettyPrint.Leijen.Text

Methods

pretty :: Doc -> Doc #

prettyList :: [Doc] -> Doc #

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

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

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

newtype PrettyE Source #

Constructors

PrettyE E 

Instances

Instances details
Show PrettyE Source # 
Instance details

Defined in Csound.Dynamic.Render.Pretty

newtype PrettyShowE Source #

Constructors

PrettyShowE E 

Instances

Instances details
Show PrettyShowE Source # 
Instance details

Defined in Csound.Dynamic.Render.Pretty

ppE :: E -> Doc Source #