packages feed

aeson-with 0.1.1.2 → 0.1.2.0

raw patch · 3 files changed

+7/−3 lines, 3 filesdep −hashmapdep −mtlPVP ok

version bump matches the API change (PVP)

Dependencies removed: hashmap, mtl

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -1,5 +1,9 @@ # Changelog for aeson-with +## v0.1.2.0++* Remove useless dependencies on `mtl` and `hashmap`.+ ## v0.1.1.0  * Add `view'` and `toListOf'` for viewing `ToJSON` instances.
aeson-with.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           aeson-with-version:        0.1.1.2+version:        0.1.2.0 synopsis:       withXField combinators for aeson description:    Silly little withXField combinators for adding fields to an existing JSON value. category:       Data@@ -34,10 +34,8 @@   build-depends:       aeson     , base >=4.7 && <5-    , hashmap     , lens     , lens-aeson-    , mtl     , scientific     , text     , unordered-containers
src/Data/Aeson/With.hs view
@@ -28,9 +28,11 @@ import           Data.Text import qualified Data.Vector       as V +-- | Version of `view` for any `ToJSON`. view' :: ToJSON a => Getting c Value c -> a -> c view' f = view f . toJSON +-- | Version of `toListOf` for any `ToJSON`. toListOf' :: ToJSON a1 => Getting (Endo [a2]) Value a2 -> a1 -> [a2] toListOf' f = toListOf f . toJSON