literate haskell

Ketil Z. Malde ketil@ii.uib.no
21 Mar 2002 08:16:11 +0100


Keith Wansbrough <Keith.Wansbrough@cl.cam.ac.uk> writes:

> Use

> \begin{code}
> fac    0  = 0
> fac (n+1) = (n+1) * fac n
> \end{code}

> and then define the `code' environment to do verbatim typesetting.

...or just download one of the available LaTeX styles for lhs, and get
a bit of visual sugaring for free.

See        http://haskell.org/libraries/#tex

-kzm
-- 
If I haven't seen further, it is by standing in the footprints of giants