yaml-0.10.1.1: Support for parsing and rendering YAML documents.

Safe HaskellNone
LanguageHaskell2010

Data.Yaml.Internal

Synopsis

Documentation

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 #

Constructors

DuplicateKey JSONPath 
Instances
Eq Warning Source # 
Instance details

Defined in Data.Yaml.Internal

Methods

(==) :: 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.