You can clone with
Motivated by yesodweb/persistent#60.
It would be nice to be able to provide more information for an error message. For example:
parseJSON (Object o) = modifyFailure
(\s -> "Parsing of the Persistent config file failed: " ++ s)
(Foo <$> o .: "someField")
Currently, I could do something like <|> fail "Parsing of Persistent config file failed", but I can't get access to the original error message.
<|> fail "Parsing of Persistent config file failed"
Sure, that looks handy. Want to submit a patch?
Pull request #106 sent.
Would it be possible to release a new version of aeson with this change?