[Haskell-cafe] Newbie question: how to run HaXML in Unix

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Thu Sep 22 15:14:24 EDT 2005

Huong Nguyen <hiperfume at gmail.com> writes:

> HaXML is installed. Do you know how I can run HaXML in Linux/Unix (which
> command I should write). Thank you.

That depends what you want to do with it.

HaXml is a library of modules for processing XML, so one answer to your
question is "just write some code"!  The API is documented at
and to compile your code in GHC, you would use a command like
    ghc -package HaXml MyCode.hs

HaXml also has some associated command-line tools, e.g. DtdToHaskell,
which generates code corresponding to a particular XML DTD.  You can
run it like
    DtdToHaskell Foo.dtd Foo.hs
and the generated source code uses the library mentioned above, so must
therefore be compiled with the -package HaXml flag as before.
It is all documented at


More information about the Haskell-Cafe mailing list