[Haskell-cafe] HaXML - creating a simple document

Terrence Brannon metaperl at gmail.com
Sat Dec 30 16:38:50 EST 2006


Hello, I don't know why my simple example will not render a simple HTML document.

For the moment, I simply want to render this:
<html>
</html>

or whatever, the simplest document is.

When I run my source code, it simply hangs (as the transcript below shows)

{- SOURCE CODE -}
import Text.XML.HaXml.Html.Generate
import Text.XML.HaXml.Combinators
import Text.XML.HaXml.Wrappers

main = processXmlWith go

go = html []

{- EXECUTION TRANSCRIPT

<!-- ~/Documents/Haskell/haxml/mkElem tbrannon --> ghci mk.hs
   ___         ___ _
  / _ \ /\  /\/ __(_)
 / /_\// /_/ / /  | |      GHC Interactive, version 6.6, for Haskell 98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

Loading package base ... linking ... done.
[1 of 1] Compiling Main             ( mk.hs, interpreted )
Ok, modules loaded: Main.
*Main> main
Loading package haskell98 ... linking ... done.
Loading package HaXml-1.17 ... linking ... done.

-}



More information about the Haskell-Cafe mailing list