aeson-better-errors 0.7.0.0 → 0.8.0
raw patch · 3 files changed
+6/−1 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Data.Aeson.BetterErrors: throwCustomError :: err -> Parse err a
+ Data.Aeson.BetterErrors.Internal: throwCustomError :: err -> Parse err a
Files
- aeson-better-errors.cabal +1/−1
- src/Data/Aeson/BetterErrors.hs +1/−0
- src/Data/Aeson/BetterErrors/Internal.hs +4/−0
aeson-better-errors.cabal view
@@ -1,5 +1,5 @@ name: aeson-better-errors-version: 0.7.0.0+version: 0.8.0 synopsis: Better error messages when decoding JSON values. license: MIT license-file: LICENSE
src/Data/Aeson/BetterErrors.hs view
@@ -53,6 +53,7 @@ , withBool , withObject , withArray+ , throwCustomError -- * Running parsers , parse
src/Data/Aeson/BetterErrors/Internal.hs view
@@ -440,3 +440,7 @@ -- possible, as they will generate better error messages. withArray :: (A.Array -> Either err a) -> Parse err a withArray = with asArray++-- | Throw a custom validation error.+throwCustomError :: err -> Parse err a+throwCustomError = liftEither . Left