The HaTeX package

[Tags:bsd3, library, test]

As it is said: "LaTeX is a high-quality typesetting system". This library provides a bridge between that system and Haskell (i.e. it is a LaTeX DSL).

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), find another way to pretty-printing values, ...

See the examples directory in the source distribution to look some simple examples. It would be good to get you started. Download the HaTeX User's Guide from

[Skip to Readme]


Versions 1.0.0, 1.0.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 3.0.0, 3.1.0, 3.2,, 3.3, 3.4, 3.5, 3.6,,,,,,,,,,,,,,,,,,,,,,
Dependencies base (==4.*), bytestring, parsec (>=3.1.2 && <3.2), text, transformers (>=0.2.2 && <0.4) [details]
License BSD3
Author Daniel Díaz
Maintainer Daniel Díaz (dhelta `dot` diaz `at` gmail `dot` com)
Stability Experimental
Category Text
Bug tracker dhelta `dot` diaz `at` gmail `dot` com
Source repository head: git clone git://
Uploaded Thu Oct 25 04:51:07 UTC 2012 by DanielDiaz
Distributions LTSHaskell:, NixOS:, Stackage:, Tumbleweed:
Downloads 10420 total (70 in the last 30 days)
1 []
Status Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for HaTeX

Readme for HaTeX-3.4


HaTeX is the LaTeX syntax implementation done in Haskell.

TODO list

  • Add more examples.
  • More testing on the parser.
  • Add more documentation.
  • A more complete AMSMath module.

Installation notes

  • To install HaTeX, use the typical cabal install.
  • Eventually you may require to install mtl first (there is a problem with the transformers dependency).

HaTeX User's Guide

  • The HaTeX User's Guide lives here.