Re: [Haskell-cafe] Literate HTML

2007-12-11 Thread Neil Mitchell
Hi All, Thanks for the general help on literate HTML. It seems that using bird-tick style literate works better than \begin{code} style. I tried it with my document, but quickly gave up - mainly because I decided literateness did not fit with what I was doing. You can compile a .html file with:

Re: [Haskell-cafe] Literate HTML

2007-12-11 Thread Valery V. Vorotyntsev
On 12/11/07, Neil Mitchell [EMAIL PROTECTED] wrote: I couldn't get it working either, so have raised a feature request bug. Which has been merged into #1232: http://hackage.haskell.org/trac/ghc/ticket/1967#comment:1 -- vvv ___ Haskell-Cafe mailing

Re: [Haskell-cafe] Literate HTML

2007-12-08 Thread hjgtuyl
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,

[Haskell-cafe] Literate HTML

2007-12-07 Thread Neil Mitchell
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? For a start, how do I persuade GHC to run the file: C:\Documents\Uni\tagsouprunhaskell index.html Warning: ignoring unrecognised input

Re: [Haskell-cafe] Literate HTML

2007-12-07 Thread Henning Thielemann
On Fri, 7 Dec 2007, Neil Mitchell 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? The numeric-quest library was the first and only one that I have seen in this style. I could only

Re: [Haskell-cafe] Literate HTML

2007-12-07 Thread Brandon S. Allbery KF8NH
On Dec 7, 2007, at 14:07 , Neil Mitchell wrote: 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? You could replace the unlit executable in the GHC library directory with one which knows how

Re: [Haskell-cafe] Literate HTML

2007-12-07 Thread Duncan Coutts
On Fri, 2007-12-07 at 19:14 +, Neil Mitchell wrote: Hi Brandon, You could replace the unlit executable in the GHC library directory with one which knows how to extract Haskell code from HTML. I want a solution so that I can write the tagsoup manual in an way that can actually be