| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Csound.Dynamic.Render.Pretty
Synopsis
- data Doc
- vcatSep :: [Doc] -> Doc
- ppCsdFile :: Doc -> Doc -> Doc -> [Plugin] -> Doc
- ppGen :: Int -> Gen -> Doc
- ppNotes :: InstrId -> [CsdEvent] -> Doc
- ppInstr :: InstrId -> Doc -> Doc
- ppStmt :: [Var] -> Exp Var -> State TabDepth Doc
- ppTotalDur :: Double -> Doc
- newtype PrettyE = PrettyE E
- newtype PrettyShowE = PrettyShowE E
- ppE :: E -> Doc
Documentation
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
| IsString Doc | |
Defined in Text.PrettyPrint.Leijen.Text Methods fromString :: String -> Doc # | |
| Monoid Doc | |
| Semigroup Doc | In particular, note that the document |
| Show Doc | |
| Pretty Doc | |
Defined in Text.PrettyPrint.Leijen.Text | |
ppTotalDur :: Double -> Doc Source #
newtype PrettyShowE Source #
Constructors
| PrettyShowE E |
Instances
| Show PrettyShowE Source # | |
Defined in Csound.Dynamic.Render.Pretty Methods showsPrec :: Int -> PrettyShowE -> ShowS # show :: PrettyShowE -> String # showList :: [PrettyShowE] -> ShowS # | |