packages feed

HsYAML-aeson 0.2.0.1 → 0.2.0.2

raw patch · 3 files changed

+35/−26 lines, 3 filesdep ~basedep ~bytestringdep ~containersPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base, bytestring, containers

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,11 +1,21 @@-See also http://pvp.haskell.org/faq+## 0.2.0.2 +_2025-03-11, Andreas Abel_++* Drop support for GHC 7.+* Support latest dependencies.+* Tested with GHC 8.0 - 9.12.1.+ ## 0.2.0.1 +_2021-11-07, Andreas Abel_+ * Allow `aeson-2.0` and `bytestring-0.11`. * Build tested with GHC 7.4 -- 9.0.  ## 0.2.0.0++_2019-09-22, Herbert Valerio Riedel_  This release incorporates the work from [Vijay Tadikamalla's GSOC 2019 Project](https://vijayphoenix.github.io/blog/gsoc-the-conclusion/). 
HsYAML-aeson.cabal view
@@ -1,10 +1,10 @@ cabal-version:       2.2 name:                HsYAML-aeson-version:             0.2.0.1+version:             0.2.0.2 license:             GPL-2.0-or-later license-file:        LICENSE.GPLv2 author:              Herbert Valerio Riedel-maintainer:          hvr@gnu.org, Andreas Abel+maintainer:          Andreas Abel copyright:           2018-2019 Herbert Valerio Riedel category:            Text, Codec, Web, JSON, YAML synopsis:            JSON to YAML Adapter@@ -21,24 +21,26 @@   'FromJSON' instances for decoding the YAML data into native Haskell data types.  tested-with:-  GHC == 9.0.1+  GHC == 9.12.1+  GHC == 9.10.1+  GHC == 9.8.4+  GHC == 9.6.6+  GHC == 9.4.8+  GHC == 9.2.8+  GHC == 9.0.2   GHC == 8.10.7   GHC == 8.8.4   GHC == 8.6.5   GHC == 8.4.4   GHC == 8.2.2   GHC == 8.0.2-  GHC == 7.10.3-  GHC == 7.8.4-  GHC == 7.6.3-  GHC == 7.4.2  extra-source-files:   CHANGELOG.md  source-repository head   type: git-  location: https://github.com/hvr/HsYAML-aeson.git+  location: https://github.com/haskell-hvr/HsYAML-aeson.git  flag exe   description: Enable @exe:yaml-test@ component@@ -48,16 +50,16 @@ library   exposed-modules: Data.YAML.Aeson   build-depends:-    , HsYAML      ^>= 0.2.0-    , aeson       ^>= 1.4.0.0 || ^>= 1.5.0.0 || ^>= 2.0.0.0-    , base         >= 4.5 && < 4.17-    , bytestring  ^>= 0.9.2.1 || ^>= 0.10.0.2 || ^>= 0.11.0.0-    , containers   >=0.4.2 && <0.7-    , mtl         ^>= 2.2.1-    , scientific  ^>= 0.3.6.2-    , text        ^>= 1.2.3+    , HsYAML               ^>= 0.2.0+    , aeson                ^>= 1.4.0.0  || ^>= 1.5.0.0 || ^>= 2.0.0.0 || ^>= 2.1.0.0 || ^>= 2.2.0.0+    , base                  >= 4.9      && < 5+    , bytestring            >= 0.10.8.1 && < 0.13+    , containers            >= 0.5.7.1  && < 1+    , mtl                  ^>= 2.2.1    || ^>= 2.3.1+    , scientific           ^>= 0.3.6.2+    , text                 ^>= 1.2.3    || ^>= 2.0 || ^>= 2.1     , unordered-containers ^>= 0.2-    , vector      ^>= 0.12.0.2+    , vector               ^>= 0.12.0.2 || ^>= 0.13.0.0    hs-source-dirs:      src   default-language:    Haskell2010
src/Data/YAML/Aeson.hs view
@@ -40,13 +40,14 @@ import           Control.Monad.Identity (runIdentity) import           Data.Aeson             as J #if MIN_VERSION_aeson(2,0,0)-import qualified Data.Aeson.Key                as AK-import qualified Data.Aeson.KeyMap             as AKM+import qualified Data.Aeson.Key         as AK+import qualified Data.Aeson.KeyMap      as AKM+#else+import qualified Data.HashMap.Strict    as HM #endif import qualified Data.Aeson.Types       as J import qualified Data.ByteString        as BS import qualified Data.ByteString.Lazy   as BS.L-import qualified Data.HashMap.Strict    as HM import qualified Data.Map               as Map import           Data.Scientific import           Data.Text              (Text)@@ -173,7 +174,7 @@ #if MIN_VERSION_aeson(2,0,0)     fT = AK.fromText #else-    fT = id   +    fT = id #endif      mkArr :: [J.Value] -> Either (Pos, String) J.Value@@ -201,11 +202,7 @@ -- O(n) Convert a lazy ByteString into a strict ByteString. {-# INLINE bsToStrict #-} bsToStrict :: BS.L.ByteString -> BS.ByteString-#if MIN_VERSION_bytestring(0,10,0) bsToStrict = BS.L.toStrict-#else-bsToStrict = BS.concat . BS.L.toChunks-#endif  -- | @since 0.2.0 instance ToYAML J.Value where