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

PortabilityGHC-only
Stabilityexperimental
MaintainerFontaine@cs.uni-duesseldorf.de
Safe HaskellSafe-Infered

Language.CSPM.AstToXML

Description

Convert an AST to XML

Synopsis

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.