packages feed

jsop 0.2.0.0 → 0.2.0.1

raw patch · 4 files changed

+15/−4 lines, 4 filesPVP: minor bump suggested

API additions: PVP suggests at least a minor version bump

API changes (from Hackage documentation)

+ Data.JSOP.Example: jsonABC :: Value

Files

README.md view
@@ -83,4 +83,12 @@ Right abc = jread (T.splitOn " / ") cherryPickABC jsonWithAB ``` +We can also rewrite an ABC value in the json++Writing optionals has an ad-hoc defined behaviour, in general writing is still to be thought in case of missing keys++```haskell+jsonABC :: Value +jsonABC = jwrite (T.splitOn " / ") cherryPickABC jsonWithABC (ABC "mamma" 44 103) +``` 
jsop.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 441c892f8a9863538b25e6aa144e815ae93d754f131af1f0b7819536939ecacd+-- hash: 538f8a14133b16e2c182ebe71a8a60a3bd988b379a062f69a1ab9761a1bf4a42  name:           jsop-version:        0.2.0.0+version:        0.2.0.1 synopsis:       Cherry picking in JSON objects description:    Simple single record picking out of nested JSON objects category:       Codec
src/Data/JSOP/Example.hs view
@@ -51,3 +51,6 @@  abc :: ABC Right abc = jread (T.splitOn " / ") cherryPickABC jsonWithABC++jsonABC :: Value +jsonABC = jwrite (T.splitOn " / ") cherryPickABC jsonWithABC (ABC "mamma" 44 103) 
test/Read.hs view
@@ -21,8 +21,8 @@ decodeU :: Text -> Value  decodeU = fromJust . decode . toUtf8Lazy -spec_generic :: Spec-spec_generic = do+spec_read :: Spec+spec_read = do   describe "jsop" do     it "can read an Int in an object" $ shouldBe       do