autodocodec 0.2.0.1 → 0.2.0.2
raw patch · 4 files changed
+10/−3 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +6/−0
- autodocodec.cabal +1/−1
- src/Autodocodec/Aeson/Decode.hs +2/−2
- src/Autodocodec/Codec.hs +1/−0
CHANGELOG.md view
@@ -1,5 +1,11 @@ # Changelog +## [0.2.0.2] - 2023-01-19++### Changed++* Compatibility with `mtl-2.3.1`+ ## [0.2.0.1] - 2022-10-06 ### Added
autodocodec.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: autodocodec-version: 0.2.0.1+version: 0.2.0.2 synopsis: Self-documenting encoder and decoder homepage: https://github.com/NorfairKing/autodocodec#readme bug-reports: https://github.com/NorfairKing/autodocodec/issues
src/Autodocodec/Aeson/Decode.hs view
@@ -90,8 +90,8 @@ Left err -> fail err Right new -> pure new EitherCodec u c1 c2 ->- let leftParser = (\v -> Left <$> go v c1)- rightParser = (\v -> Right <$> go v c2)+ let leftParser v = Left <$> go v c1+ rightParser v = Right <$> go v c2 in case u of PossiblyJointUnion -> case parseEither leftParser value of
src/Autodocodec/Codec.hs view
@@ -13,6 +13,7 @@ module Autodocodec.Codec where +import Control.Monad import Control.Monad.State import Data.Aeson (FromJSON, FromJSONKey, ToJSON, ToJSONKey) import qualified Data.Aeson as JSON