[Haskell-cafe] Literate HTML

hjgtuyl at chello.nl hjgtuyl at chello.nl
Sat Dec 8 07:45:34 EST 2007


You can compile a .html file with:
   ghc --make -x lhs index.html

if you write the code like this:

   > foo = 1


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:
       attempting to use module `Main' (Main.hs) which is not loaded


On Fri, 07 Dec 2007 20:07:41 +0100, Neil Mitchell <ndmitchell at gmail.com>  

> 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?


More information about the Haskell-Cafe mailing list