This module defines the various output formats offered by the anlysis server.
data OutputFormat
The type of supported output formats of the analysis server.
Constructors:
FormatText
:: OutputFormat
FormatShort
:: OutputFormat
FormatTerm
:: OutputFormat
FormatJSON
:: OutputFormat
FormatJSONTerm
:: OutputFormat
FormatXML
:: OutputFormat
Known instances:
serverFormatNames
:: [(String, OutputFormat)]
The names and output formats supported by the analysis server.
formatResult
:: String -> OutputFormat -> Maybe String -> Bool -> Bool -> Either (ProgInfo String) String -> String
Format an analysis result in different formats.
The arguments are the module name, the output format,
(Just n)
if not the complete module but the result for entity n
should only be shown, a flag which is true if only the interface
information should be shown, and a flag which is true if also
generated operations should be shown.