The HaTeX package

[Tags: bsd3, library]

The LaTeX project site states: "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. HaTeX User's Guide is available at

[Skip to ReadMe]


Versions1.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,,,,,,,,,,,,,,,,,,,
Change logNone available
Dependenciesattoparsec, base (==4.*), bytestring, containers, matrix, text, transformers (>=0.2.2 && <0.4) [details]
AuthorDaniel Díaz
MaintainerDaniel Díaz (dhelta `dot` diaz `at` gmail `dot` com)
Bug tracker
Source repositoryhead: git clone git://
UploadedTue Jun 25 17:17:02 UTC 2013 by DanielDiaz
DistributionsLTSHaskell:, NixOS:, Stackage:
Downloads8923 total (174 in last 30 days)
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]




Maintainers' corner

For package maintainers and hackage trustees

Readme for HaTeX-3.6

HaTeX ReadMe

HaTeX is the LaTeX syntax implementation done in Haskell. Check a list of examples of usage in the examples directory. A good starting point may be simple.hs. Run the script using the main function.

Installation notes

To install HaTeX, use cabal-install. $ cabal install HaTeX

HaTeX User's Guide

The HaTeX User's Guide lives here... and is also done in Haskell!


To contribute to HaTeX, please, visit our code repository in GitHub:

TODO list

Related projects