Hello, I am using literate programming with \begin{code}...\end{code}. But there is one problem. I want to hide some code of a module in my documentation. Therefore another environment, e.g. called hiddencode, would be very useful. To make things more general: Is there the possiblity to add other code environments? If not I would prefer a command line option. What do you think about this? Ciao, Steffen -- Steffen Mazanek - www.steffen-mazanek.de - GPG: 791F DCB3 Haskell, that's where I just curry until fail, unwords any error, drop all undefined, maybe break, otherwise in sequence span isControl and take max $, id: (d:[])
* Steffen Mazanek <steffen.mazanek@UniBw-Muenchen.de> [2003-06-15 14:10 +0200]:
I am using literate programming with \begin{code}...\end{code}. But there is one problem. I want to hide some code of a module in my documentation.
What about: \long\def\ignore#1{} and then \ignore{ \begin{code} main = putStrLn "I am not in the docs!" \end{code} } %ignore Regards, Olli -- Oliver Braun :: obraun@unsane.org :: Work => obraun@informatik.unibw-muenchen.de :: FreeBSD => obraun@FreeBSD.org -> http://people.freebsd.org/~obraun/ :: Haskell => obraun@haskell.org -> http://haskell.org/freebsd/
What about:
\long\def\ignore#1{}
and then
\ignore{ \begin{code} main = putStrLn "I am not in the docs!" \end{code} } %ignore
That is fine! Thank you. Nevertheless, additional environments would be useful, too, e.g. if you would like to have different font sizes in your documentation. Ciao, Steffen -- Steffen Mazanek - www.steffen-mazanek.de - GPG: 791F DCB3 Haskell, that's where I just curry until fail, unwords any error, drop all undefined, maybe break, otherwise in sequence span isControl and take max $, id: (d:[])
I have added my experiences with Haskell literate programming to the wiki: http://haskell.org/hawiki/LiterateProgramming Ciao, Steffen -- Steffen Mazanek - www.steffen-mazanek.de - GPG: 791F DCB3 Haskell, that's where I just curry until fail, unwords any error, drop all undefined, maybe break, otherwise in sequence span isControl and take max $, id: (d:[])
participants (3)
-
Oliver Braun -
Steffen Mazanek -
Steffen Mazanek