Safe Haskell | Safe-Inferred |
---|
Pretty-printing JavaScript.
- class Pretty a where
- prettyPrint :: a -> Doc
- javaScript :: JavaScript a -> Doc
- renderStatements :: [Statement a] -> String
- renderExpression :: Expression a -> String
- class PP a where
Documentation
A class of pretty-printable ECMAScript AST nodes.
prettyPrint :: a -> DocSource
javaScript :: JavaScript a -> DocSource
Deprecated: These interfaces are outdated and would be removed/hidden in version 1.0. Use the Pretty class instead.
DEPRECATED: Use prettyPrint
instead! Renders a JavaScript
program as a document, the show instance of Doc
will pretty-print
it automatically
renderStatements :: [Statement a] -> StringSource
Deprecated: These interfaces are outdated and would be removed/hidden in version 1.0. Use the Pretty class instead.
DEPRECATED: Use prettyPrint
instead! Renders a list of
statements as a String
renderExpression :: Expression a -> StringSource
Deprecated: These interfaces are outdated and would be removed/hidden in version 1.0. Use the Pretty class instead.
DEPRECATED: Use prettyPrint
instead! Renders a list of
statements as a String