Instances2Show, Exception
Show ParseExceptionDefined in yaml-0.11.11.2 · Data.Yaml.InternalException ParseExceptionDefined in yaml-0.11.11.2 · Data.Yaml.Internal
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Moduleyaml-0.11.11.2Haskell2010
Show ParseExceptionDefined in yaml-0.11.11.2 · Data.Yaml.InternalException ParseExceptionDefined in yaml-0.11.11.2 · Data.Yaml.InternalAlternative 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
Encodes a string with the supplied style. This function handles the empty string case properly to avoid https://github.com/snoyberg/yaml/issues/24
Determine whether a string must be quoted in YAML and can't appear as plain text.
Useful if you want to use setStringStyle.
Strings which must be escaped so as not to be treated as non-string scalars.
Encode a value as a YAML document stream.
Encode a value as a list of Events.