@hackage HaTeX3.11.0.0

The Haskell LaTeX library.

This library provides a bridge between LaTeX and Haskell, implementing the LaTeX syntax in Haskell.

Some of the things you can do with HaTeX are:

Write LaTeX documents with all the advantages you already have in Haskell (recursion, type system, high order functions, ...), create a LaTeX backend for your own program, parse a LaTeX file and obtain its Abstract Syntax Tree (AST), pretty-print Haskell values in LaTeX, generate TikZ scripts easily, ...

Browse the examples directory in the source distribution to see some simple examples. It would be good to get you started. The HaTeX User's Guide is available at https://github.com/Daniel-Diaz/hatex-guide/blob/master/README.md.