language-python-0.1.1: Parsing and pretty printing of Python code.

Portabilityghc
Stabilityexperimental
Maintainerbjpop@csse.unimelb.edu.au

Language.Python.Version3.Syntax.Pretty

Description

Pretty printing of the Python version 3 abstract syntax. XXX not quite complete.

Synopsis

Documentation

prettyText :: Pretty a => a -> StringSource

Transform values into strings.

parensIf :: Pretty a => (a -> Bool) -> a -> DocSource

Conditionally wrap parentheses around an item.

commaList :: Pretty a => [a] -> DocSource

A list of things separated by commas.