HaXml-1.24: Utilities for manipulating XML documents

Safe Haskell | Safe-Inferred

Text.XML.HaXml.Schema.PrettyHsBoot

Description

Pretty-print the internal Haskell model of XSD datatypes to a Haskell hs-boot module containing only stub type declarations. This approach is intended to work around issues of mutually recursive datatype definitions.

Synopsis

- ppComment :: CommentPosition -> Comment -> Doc
- ppModule :: NameConverter -> Module -> Doc
- ppHighLevelDecl :: NameConverter -> Decl -> Doc
- ppHighLevelDecls :: NameConverter -> [Decl] -> Doc
- ppvList :: String -> String -> String -> (a -> Doc) -> [a] -> Doc

# Documentation

ppComment :: CommentPosition -> Comment -> Doc

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

ppModule :: NameConverter -> Module -> Doc

Convert a whole document from HaskellTypeModel to Haskell source text.

ppHighLevelDecl :: NameConverter -> Decl -> Doc

Convert a single Haskell Decl into Haskell source text.

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

Convert multiple HaskellTypeModel Decls to Haskell source text.

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

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