packages feed

json-syntax 0.2.7.1 → 0.2.7.2

raw patch · 4 files changed

+62/−31 lines, 4 filesdep −containersdep −vectordep ~array-chunksdep ~scientific-notationdep ~tastysetup-changedPVP ok

version bump matches the API change (PVP)

Dependencies removed: containers, vector

Dependency ranges changed: array-chunks, scientific-notation, tasty, tasty-golden, tasty-hunit, tasty-quickcheck, text, transformers

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,11 @@ # Revision history for json-syntax +## 0.2.7.2 -- 2024-02-07++* Fix build with GHC 9.8.+* Bumped upper bound on `transformers` to <0.7.+* Bumped upper bound on `text` to <2.2.+ ## 0.2.7.1 -- 2024-01-29  * Update package metadata.
+ README.md view
@@ -0,0 +1,25 @@+# json-syntax++This library parses JSON into a `Value` type that is consistent with the+ABNF described in [RFC 7159](https://tools.ietf.org/html/rfc7159). The+parser is about six times faster than the parser that `aeson` provides.+This parser is however, non-resumable, so if resumable parsing is+important, `aeson` should be preferred. Results from the benchmark suite:++    benchmarked json/twitter/100+    time                 208.6 μs   (207.1 μs .. 210.1 μs)+                         1.000 R²   (0.999 R² .. 1.000 R²)+    mean                 211.8 μs   (210.7 μs .. 213.3 μs)+    std dev              4.493 μs   (3.299 μs .. 7.422 μs)+    +    benchmarked aeson/twitter/100+    time                 1.284 ms   (1.267 ms .. 1.296 ms)+                         0.999 R²   (0.999 R² .. 1.000 R²)+    mean                 1.282 ms   (1.276 ms .. 1.292 ms)+    std dev              26.07 μs   (17.87 μs .. 40.01 μs)++This library does not include any functions or typeclasses to help users+convert data from `Value`, the RFC-7159-inspired syntax tree data type.+Such functions and typeclasses are outside the scope of this library. If+anyone writes a library that helps users marshal their data in this way,+open a issue so that the `json-syntax` documentation can point users to it.
− Setup.hs
@@ -1,3 +0,0 @@-import Distribution.Simple--main = defaultMain
json-syntax.cabal view
@@ -1,6 +1,6 @@ cabal-version:   2.2 name:            json-syntax-version:         0.2.7.1+version:         0.2.7.2 synopsis:        High-performance JSON parser and encoder description:   This library parses JSON into a @Value@ type that is consistent with the@@ -24,9 +24,18 @@ copyright:       2019 Andrew Martin category:        Data build-type:      Simple-extra-doc-files: CHANGELOG.md+extra-doc-files:+  CHANGELOG.md+  README.md +tested-with:     GHC ==9.4.8 || ==9.6.3 || ==9.8.1++common build-settings+  default-language: Haskell2010+  ghc-options:      -Wall -Wunused-packages+ library+  import:          build-settings   exposed-modules:     Json     Json.Flatten@@ -45,50 +54,46 @@     , primitive            >=0.7    && <0.10     , run-st               >=0.1.1  && <0.2     , scientific-notation  >=0.1.6  && <0.2-    , text                 >=2.0.2  && <2.1+    , text                 >=2.0.2  && <2.2     , text-short           >=0.1.3  && <0.2-    , transformers         >=0.5.6  && <0.6+    , transformers         >=0.5.6  && <0.7     , word-compat          >=0.0.6  && <0.1     , zigzag               >=0.0.1  && <0.1 -  hs-source-dirs:   src-  default-language: Haskell2010-  ghc-options:      -Wall -O2+  hs-source-dirs:  src+  ghc-options:     -O2  test-suite test-  default-language: Haskell2010-  type:             exitcode-stdio-1.0-  hs-source-dirs:   test common-  main-is:          Main.hs+  import:         build-settings+  type:           exitcode-stdio-1.0+  hs-source-dirs: test common+  main-is:        Main.hs   other-modules:     Person     Twitter100 -  ghc-options:      -Wall -O2   build-depends:     , aeson                >=2.0.2-    , array-chunks     , base                 >=4.12.0.0 && <5     , bytebuild     , byteslice            >=0.1.3     , bytestring-    , containers     , json-syntax     , neat-interpolation   >=0.3.2     , primitive     , QuickCheck           >=2.14.2     , scientific     , scientific-notation  >=0.1.1-    , tasty                >=1.2.3    && <1.3-    , tasty-golden         >=2.0      && <2.4-    , tasty-hunit          >=0.10.0.2 && <0.11-    , tasty-quickcheck     >=0.10.1.2 && <0.11-    , text                 >=2.0.2    && <2.1+    , tasty                >=1.2.3+    , tasty-golden         >=2.0+    , tasty-hunit          >=0.10.0.2+    , tasty-quickcheck     >=0.10.1.2+    , text                 >=2.0.2     , text-short-    , vector  benchmark bench-  type:             exitcode-stdio-1.0+  import:         build-settings+  type:           exitcode-stdio-1.0   build-depends:     , aeson     , base@@ -97,15 +102,13 @@     , bytestring     , gauge     , json-syntax-    , neat-interpolation   >=0.3.2+    , neat-interpolation  >=0.3.2     , primitive-    , scientific-notation  >=0.1.1-    , text                 >=2.0.2 && <2.1+    , text                >=2.0.2 -  ghc-options:      -Wall -O2-  default-language: Haskell2010-  hs-source-dirs:   bench common-  main-is:          Main.hs+  ghc-options:    -O2+  hs-source-dirs: bench common+  main-is:        Main.hs   other-modules:     Metrics1024     Twitter100