HaXml-1.23.3: Utilities for manipulating XML documents

Safe HaskellSafe-Infered



Pretty-print the internal Haskell model of XSD datatypes to a real Haskell module containing type declarations, and instances for parsing (and printing - though not yet implemented) values of those datatypes from(/to) XML.



ppComment :: CommentPosition -> Comment -> DocSource

Generate aligned haddock-style documentation. (but without escapes in comment text yet)

ppModule :: NameConverter -> Module -> DocSource

Convert a whole document from HaskellTypeModel to Haskell source text.

ppHighLevelDecl :: NameConverter -> Decl -> DocSource

Convert a single Haskell Decl into Haskell source text.

ppHighLevelDecls :: NameConverter -> [Decl] -> DocSource

Convert multiple HaskellTypeModel Decls to Haskell source text.

ppvList :: String -> String -> String -> (a -> Doc) -> [a] -> DocSource

Vertically pretty-print a list of things, with open and close brackets, and separators.