如何將Literate Haskell文件轉換爲更容易的東西?下面是當我嘗試做明顯的事情會發生什麼:將任何Literate Haskell渲染爲PDF,HTML或類似文件
$ latex Check.lhs
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
entering extended mode
(./Check.lhs
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
! LaTeX Error: Environment code undefined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.7 \begin{code}
我不熟悉處理TEX文件通常的命令。什麼是一種簡單的,毫無意義的方式,我可以用來將幾乎任何.lhs
文件轉換爲PDF或HTML?