aeson-utils: aeson-0.9 compatibility package

Adam Bergmark adam at bergmark.nl
Mon May 25 22:13:09 UTC 2015


Hi folks,

aeson-0.9 was released today. It changes the behavior of `decode` and
`eitherDecode`: They now both allow atomic values on the top level.
Previously the behavior was inconsistent, `encode 1 = "1"` but `decode "1"
:: Maybe Int = Nothing`.

aeson-utils[1] has the functions `decodeV` and `eitherDecodeV` that work
like aeson-0.9's `decode` and `eitherDecode` respectively, also with older
aeson versions. If you want to stay backwards compatible without having
varying semantics based on dependencies, check it out!

[1] http://hackage.haskell.org/package/aeson-utils

Regards,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20150526/0e4d4ee8/attachment.html>


More information about the Libraries mailing list