@hackage HaTeX3.6.1.0

The Haskell LaTeX library.

The LaTeX project site states: "LaTeX is a high-quality typesetting system". This library provides a bridge between LaTeX and Haskell, implementing the LaTeX syntax in Haskell.

Some of the things you can do 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, make analysis of LaTeX code through its Abstract Syntax Tree (AST), pretty-print Haskell values in LaTeX, generate TikZ scripts easily, ...

See the examples directory in the source distribution to look 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.