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 <[EMAIL PROTECTED]> 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/
--

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to