pretext

pretext is a library designed for generating formatted source code.

pretext templates are first-class values independent of their indentation. Templates are built by applying pretext's combinators to strings, ShowS values, and other templates. The indentation of any part of a template is determined only once the template is converted to a string.

pretext is distributed under the GNU General Public License version 3.

pretext is implemented in Haskell as of version 0.2.

There is no documentation for the Python code but there is complete Haddock documentation for the Haskell source. Both versions of the code have extensive test suites that can be used as examples.

There are several short term goals for this project after version 0.3: