9.4. Pretty-printing Haskell: pphs

Andrew Preece has written pphs, a utility to pretty-print Haskell code in LaTeX documents. Keywords in bolds, variables in italics—that sort of thing. It is good at lining up program clauses and equals signs, things that are very tiresome to do by hand.

The code is distributed with GHC in ghc/CONTRIB/pphs.