[Haskell-cafe] how to generate XHTML 1.1?

Chris Kuklewicz haskell at list.mightyreason.com
Fri Aug 18 07:00:44 EDT 2006


Tamas K Papp wrote:
> Hi,
> 
> I would like to use Haskell to generate static HTML webpages,
> preferably using XHTML 1.1.  How can I do this?  I found libraries to
> generate XHTML 1.0 transitional, but not 1.1.  Scheme has LAML [1],
> which parses the DTD, uses S-expressions and validates the XHTML, I am
> looking for something similarly elegant (even if without the
> S-expressions, which I haven't seen in Haskell yet).
> 

Google for "Haskell SXML" to get oleg's messages:

http://www.mail-archive.com/haskell@haskell.org/msg18396.html
http://www.mail-archive.com/haskell@haskell.org/msg18607.html

> Our running example, inspired by the Haskell.org web site, is:
> 
> test_haskell =
>     (document
>      (head
>       [title "Haskell" longdash "HaskellWiki"]
>       [meta_tag [description "All about the language" br "Haskell"]])
>     (body
>      [h1 "Haskell"]
>      [div (attr [title "titleline"])
>       [p
>        [[a (attr [href (FileURL "/haskellwiki/Image:Haskelllogo.jpg")])
>          "Haskell" br "A <purely functional> language"]]
>        br
>       ]
>       [p "Haskell is a general purpose," 
>        [[em [[strong "purely"]] "functional"]] "programming language"]]))



More information about the Haskell-Cafe mailing list