[Haskell-cafe] Literate Haskell source files. How do I

Eric Kow eric.kow at gmail.com
Sat Dec 30 16:01:54 EST 2006


> On 30/12/06, Michael T. Richter <ttmrichter at gmail.com> wrote:

> >  Are there any tools which I can use to render .lhs files readable?  I'm fine with having them converted into documented source (i.e. source code embedded in documentation) or as pure Haskell source (but without the huge whitespace gaps) -- but I can't figure out how to get either.

The darcs code is a bit different in that the LaTeX "comments" are
actually the user's manual (for the most part).  The code is normally
hidden when you compile the pdf.  To see the code, you can apply the
attached darcs patch.  (You could also do it by hand; it's just a
couple of changes).

When you run make manual/darcs.ps, you will have a ps file that is
simultaneously the darcs manual, and various bits of darcs code
interspersed and highlighted in blue.

(This is > 300 pages of literate darcs, mind you.  Maybe just browsing
it in a text editor is simpler)

Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: literate-darcs.dpatch
Type: application/octet-stream
Size: 26162 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20061230/a2cb4810/literate-darcs-0001.obj

More information about the Haskell-Cafe mailing list