yaml-marked-0.2.0.1: Support for parsing and rendering YAML documents with marks.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Yaml.Marked.Parse

Contents

Synopsis

Documentation

json :: FromJSON a => Marked Value -> Either String (Marked a) Source #

Parse the value using its FromJSON instance, passing along the marks

Lower-level

withPrependedPath :: (val -> Either String a) -> Marked val -> Either String (Marked a) Source #

Prepend an error with an item's markedJSONPath, when present

All of the functions above do this already. You would only need this if you're writing something that doesn't us them.