Safe Haskell | Safe-Infered |
---|
Language.ECMAScript3.PrettyPrint
Description
Pretty-printing JavaScript.
- javaScript :: JavaScript a -> Doc
- renderStatements :: [Statement a] -> String
- renderExpression :: Expression a -> String
- class PP a where
Documentation
javaScript :: JavaScript a -> DocSource
Renders a JavaScript program as a document, the show instance of
Doc
will pretty-print it automatically
renderStatements :: [Statement a] -> StringSource
Renders a list of statements as a String
renderExpression :: Expression a -> StringSource
Renders a list of statements as a String