Portability | GHC-only |
---|---|
Stability | experimental |
Maintainer | Fontaine@cs.uni-duesseldorf.de |
Convert an AST to XML
- moduleToXML :: Module a -> Element
- astToXML :: Data a => a -> Element
- showTopElement :: Element -> String
Documentation
moduleToXML :: Module a -> ElementSource
Translate a Module to XML
astToXML :: Data a => a -> ElementSource
Translate an AST node to an XML Element.
This is an almost
totally generic translation which
works for any Haskell type, but it handles some special cases.
showTopElement :: Element -> String
Adds the ?xml? header.