Safe Haskell | Safe-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 -> Doc
- ppModule :: NameConverter -> Module -> Doc
- ppHighLevelDecl :: NameConverter -> Decl -> Doc
- ppHighLevelDecls :: NameConverter -> [Decl] -> Doc
- ppModuleWithInstances :: NameConverter -> Module -> Doc
- ppHighLevelInstances :: NameConverter -> Decl -> Doc
- ppvList :: String -> String -> String -> (a -> Doc) -> [a] -> Doc
Documentation
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.
ppModuleWithInstances :: NameConverter -> Module -> DocSource
Generate a supplementary module to contain instances, especially for types that needed to be forward-declared.
ppHighLevelInstances :: NameConverter -> Decl -> DocSource
Instances that depend on FwdDecl'd types, need to be declared in a different module. So they have been separated out from ppHighLevelDecl.