HaTeX consists in a set of combinators which allow you to build LaTeX code, following the LaTeX syntax in a type-safe manner.
This allows you to build programs which generates LaTeX code automatically for any purpose you can figure out.
- HaTeX homepage: http://dhelta.net/hprojects/HaTeX.
- HaTeX in Hackage: http://hackage.haskell.org/package/HaTeX.
- HaTeX User's Guide (HaskellWiki version).