lhs2TeX

lhs2TeX is a preprocessor to generate LaTeX code from literate Haskell sources. It is released under the GPL.

lhs2TeX includes the following features:

Different styles to process your source file: for instance, "tt" style uses a monospaced font for the code while still allowing you to highlight keywords etc, whereas "poly" style uses proportional fonts for identifiers, handles indentation nicely, is able to replace binary operators by mathematical symbols and take care of complex horizontal alignments.
Formatting directives, which let you customize the way certain tokens in the source code should appear in the processed output.
A liberal parser that can handle most of the language extensions; you don't have to restrict yourself to Haskell 98.
Preprocessor-style conditionals that allow you to generate different versions of a document from a single source file (for instance, a paper and a presentation).
Active documents: you can use Haskell to generate parts of the document (useful for papers on Haskell).
A manual explaining all the important aspects of lhs2TeX.
Current release: Version 1.18.1 (September 08, 2012)
This version should work properly with ghc-7.6. It also fixes a bug that causes a build-time failure for lhs2tex-1.18.
Download from Hackage.
Development repository
Development of lhs2TeX takes place on GitHub.
Old version 1.18 (September 04, 2012)
This version is broken. Use 1.18.1 instead.
Download from Hackage.
Old version 1.17 (March 17, 2011)
This version should work properly with ghc-7.0.2 and Cabal-1.10.
Manual (pdf)
Download: Source distribution (.tar.gz)
Experimental Agda support
Old version 1.16 (July 22, 2010)
Manual (pdf)
Download: Source distribution (.tar.gz)
Experimental Agda support
Old version 1.15 (December 18, 2009)
Manual (pdf)
Download: Source distribution (.tar.gz)
Experimental Agda support
Old version 1.14 (October 24, 2008)
Release announcement
Manual (pdf)
Download: Source distribution (.tar.gz)
Experimental Agda support
Old version 1.13 (February 14, 2008)
Release announcement
Manual (pdf)
Download: Source distribution (.tar.gz)
Old version 1.12 (January 9, 2007)
Release announcement
Manual (pdf)
Download: Source distribution (.tar.bz2)
Old version 1.11 (March 15, 2006)
Release announcement
Manual (pdf)
Download: Source distribution for Unix-like systems (.tar.bz2)
Old version 1.10pre (April 1, 2004)
Manual (pdf)
Download: Source distribution for Unix-like systems (.tar.bz2)
Experimental Windows binary installer (.exe)
This version of lhs2TeX is included in Debian and in Gentoo Linux.
Old version 1.9 (January 23, 2004)
Release announcement
Manual (pdf)
Download: Source distribution for Unix-like systems (.tar.bz2)
This version of lhs2TeX is included in Debian and in Gentoo Linux.

Valid XHTML 1.0! Valid CSS!

Andres Löh, 2014-01-22