Copyright | (c) Fontaine 2011 |
---|---|
License | BSD3 |
Maintainer | Fontaine@cs.uni-duesseldorf.de |
Stability | experimental |
Portability | GHC-only |
Safe Haskell | None |
Language | Haskell2010 |
Convert an AST to XML
- moduleToXML :: Module a -> Element
- astToXML :: Data a => a -> Element
- showTopElement :: Element -> String
Documentation
moduleToXML :: Module a -> Element Source #
Translate a Module to XML
astToXML :: Data a => a -> Element Source #
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.