CSPM-cspm-0.8.1.0: cspm command line tool for analyzing CSPM specifications.

Copyright(c) Fontaine 2011
LicenseBSD3
MaintainerFontaine@cs.uni-duesseldorf.de
Stabilityexperimental
PortabilityGHC-only
Safe HaskellNone
LanguageHaskell2010

Language.CSPM.AstToXML

Description

Convert an AST to XML

Synopsis

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.