yaml- Support for parsing and rendering YAML documents.

Safe HaskellNone




prettyPrintParseException :: ParseException -> String Source #

Alternative to show to display a ParseException on the screen. Instead of displaying the data constructors applied to their arguments, a more textual output is returned. For example, instead of printing:

InvalidYaml (Just (YamlParseException {yamlProblem = "did not find expected ',' or '}'", yamlContext = "while parsing a flow mapping", yamlProblemMark = YamlMark {yamlIndex = 42, yamlLine = 2, yamlColumn = 12}})))

It looks more pleasant to print:

YAML parse exception at line 2, column 12,
while parsing a flow mapping:
did not find expected ',' or '}'

Since 0.8.11

data Warning Source #


DuplicateKey JSONPath 
Eq Warning Source # 
Instance details

Defined in Data.Yaml.Internal


(==) :: Warning -> Warning -> Bool #

(/=) :: Warning -> Warning -> Bool #

Show Warning Source # 
Instance details

Defined in Data.Yaml.Internal

specialStrings :: HashSet Text Source #

Strings which must be escaped so as not to be treated as non-string scalars.