Literate Programming in Haskell?

Patrik Jansson
Mon, 19 Feb 2001 15:07:41 +0100 (MET)

On Mon, 19 Feb 2001, Bostjan Slivnik wrote:
> > I'm also very interested in this, but ideally I would want the output to
> > be in some proportional font, with symbols like =>, ->, <- replaced with
> > arrows, etc. Also, it would be very nice to have the code automatically
> > column aligned (using heuristics).
> So am I.  Is anybody willing to cooperate on the desing of such tool?

A tool I am using is Ralf Hinze's lhs2tex

It transforms .lhs files (with some formatting commands in LaTeX-style
comments) to LaTeX. Development based on this idea is something I would be
willing to participate in as I already have a fair amount of Haskell
code/articles (read: my PhD thesis;-) in this format.

Maybe Ralf can say something about his views on further development of
lhs2tex (copyright etc.) by other people (us?).

/Patrik Jansson

PS. I have made some small improvements to lhs2tex locally and I seem to
    remember that one or two of those were actually needed to get it to
    run with my ghc version.