Tutorial for literate Haskell

b.i.mills@massey.ac.nz b.i.mills@massey.ac.nz
Tue, 4 Mar 2003 11:25:59 +1300


Hi,

Since I sent this to the haskell list in the first place,
I'd better let everyone know that it all worked out.

> Hmm, there were no problems in simply doing so.

Ok, I've cut your example down a bit (just from a
minimalist tendency). The complete modified code is ...

   \documentclass{report}
   \usepackage{verbatim}    % vital
   \begin{document}
   \newenvironment{code}{\footnotesize\verbatim}{\endverbatim\normalsize}
   
   HaskellModule.lhs:
   
   Maybe some text...
   We call our module Foo, 
   because this name is very meaningful.
   
   \begin{code}
   module Foo where
   \end{code}
   
   \end{document}

Works just fine and seems robust.

My original problem ... an over-developed tendency to go it alone?
I was not using package verbatim, which does help, doesn't it.

> I hope this will help.

Yup, thanks.

Bruce.