packages feed

aeson-with 0.1.0.0 → 0.1.0.1

raw patch · 4 files changed

+11/−11 lines, 4 filessetup-changedPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

LICENSE view
@@ -1,4 +1,4 @@-Copyright Author name here (c) 2020+Copyright Daniel Firth (c) 2020  All rights reserved. 
− Setup.hs
@@ -1,2 +0,0 @@-import Distribution.Simple-main = defaultMain
aeson-with.cabal view
@@ -1,13 +1,11 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.33.1.+-- This file has been generated from package.yaml by hpack version 0.34.2. -- -- see: https://github.com/sol/hpack------ hash: 1ee92e1f825a8b020fcedaea82e7dbc3f62b20bdb5a6731b26dac5b9a3e64ff6  name:           aeson-with-version:        0.1.0.0+version:        0.1.0.1 synopsis:       withXField combinators for aeson description:    Silly little withXField combinators for adding fields to an existing JSON value. category:       Data@@ -20,6 +18,10 @@ extra-source-files:     README.md     ChangeLog.md++source-repository head+  type: git+  location: git@gitlab.com:homotopic-tech/aeson-with  library   exposed-modules:
src/Data/Aeson/With.hs view
@@ -11,12 +11,12 @@ )where  import           Control.Lens-import           Data.Aeson      as A+import           Data.Aeson        as A import           Data.Aeson.Lens-import qualified Data.HashMap.Lazy     as HML+import qualified Data.HashMap.Lazy as HML import           Data.Scientific import           Data.Text-import qualified Data.Vector      as V+import qualified Data.Vector       as V  -- | Union two JSON values together. withJSON :: (ToJSON a) => a -> Value -> Value@@ -38,7 +38,7 @@  -- | Add an Value field to a JSON value. withValue :: ToJSON a => Text -> a -> Value -> Value-withValue f v = _Object . at f ?~ (toJSON v)+withValue f v = _Object . at f ?~ toJSON v  -- | Add an Number field to a JSON value. withNumberField :: Text -> Scientific -> Value -> Value