[Haskell-cafe] Literate HTML
hjgtuyl at chello.nl
hjgtuyl at chello.nl
Sat Dec 8 07:45:34 EST 2007
Hello,
You can compile a .html file with:
ghc --make -x lhs index.html
if you write the code like this:
<code>
> foo = 1
</code>
N.B. You need an empty line between <code> and the code and one between
the code and </code>.
The -x flag doesn't seem to work for runhaskell, when I try this, I get
the message:
<interactive>:1:112:
attempting to use module `Main' (Main.hs) which is not loaded
Regards,
Henk-Jan
On Fri, 07 Dec 2007 20:07:41 +0100, Neil Mitchell <ndmitchell at gmail.com>
wrote:
> Hi
>
> I want literate Haskell, but where the literate bit forming a document
> is actually HTML, not latex. Does anyone have any idea how to go about
> this?
--
http://functor.bamikanarie.com
http://Van.Tuyl.eu/
--
More information about the Haskell-Cafe
mailing list