Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-aeson-pretty for 
openSUSE:Factory checked in at 2021-11-11 21:36:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-aeson-pretty (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-aeson-pretty.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-aeson-pretty"

Thu Nov 11 21:36:06 2021 rev:16 rq:930300 version:0.8.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-aeson-pretty/ghc-aeson-pretty.changes        
2020-12-22 11:34:21.465191775 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-aeson-pretty.new.1890/ghc-aeson-pretty.changes  
    2021-11-11 21:36:08.056876061 +0100
@@ -1,0 +2,14 @@
+Mon Nov  1 08:29:50 UTC 2021 - [email protected]
+
+- Update aeson-pretty to version 0.8.9.
+  Upstream added a new change log file in this release. With no
+  previous version to compare against, the automatic updater cannot
+  reliable determine the relevante entries for this release.
+
+-------------------------------------------------------------------
+Tue Oct 12 09:50:15 UTC 2021 - [email protected]
+
+- Update aeson-pretty to version 0.8.8 revision 1.
+  Upstream has revised the Cabal build instructions on Hackage.
+
+-------------------------------------------------------------------

Old:
----
  aeson-pretty-0.8.8.tar.gz

New:
----
  aeson-pretty-0.8.9.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-aeson-pretty.spec ++++++
--- /var/tmp/diff_new_pack.0Toms2/_old  2021-11-11 21:36:08.468876361 +0100
+++ /var/tmp/diff_new_pack.0Toms2/_new  2021-11-11 21:36:08.468876361 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-aeson-pretty
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %global pkg_name aeson-pretty
 Name:           ghc-%{pkg_name}
-Version:        0.8.8
+Version:        0.8.9
 Release:        0
 Summary:        JSON pretty-printing library and command-line tool
 License:        BSD-3-Clause
@@ -80,6 +80,6 @@
 %license LICENSE
 
 %files devel -f %{name}-devel.files
-%doc README.markdown
+%doc CHANGELOG.markdown README.markdown
 
 %changelog

++++++ aeson-pretty-0.8.8.tar.gz -> aeson-pretty-0.8.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aeson-pretty-0.8.8/CHANGELOG.markdown 
new/aeson-pretty-0.8.9/CHANGELOG.markdown
--- old/aeson-pretty-0.8.8/CHANGELOG.markdown   1970-01-01 01:00:00.000000000 
+0100
+++ new/aeson-pretty-0.8.9/CHANGELOG.markdown   2001-09-09 03:46:40.000000000 
+0200
@@ -0,0 +1,4 @@
+# aeson-pretty changelog
+
+## 0.8.9
+ * Added support for Aeson 2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aeson-pretty-0.8.8/Data/Aeson/Encode/Pretty.hs 
new/aeson-pretty-0.8.9/Data/Aeson/Encode/Pretty.hs
--- old/aeson-pretty-0.8.8/Data/Aeson/Encode/Pretty.hs  2019-09-27 
20:34:25.000000000 +0200
+++ new/aeson-pretty-0.8.9/Data/Aeson/Encode/Pretty.hs  2001-09-09 
03:46:40.000000000 +0200
@@ -1,4 +1,4 @@
-{-# LANGUAGE OverloadedStrings, RecordWildCards #-}
+{-# LANGUAGE OverloadedStrings, RecordWildCards, CPP #-}
 
 -- |Aeson-compatible pretty-printing of JSON 'Value's.
 module Data.Aeson.Encode.Pretty (
@@ -54,11 +54,15 @@
     keyOrder
 ) where
 
+#if MIN_VERSION_aeson(2,0,0)
+import qualified Data.Aeson.Key as AK
+import qualified Data.Aeson.KeyMap as AKM
+#endif
 import Data.Aeson (Value(..), ToJSON(..))
-import qualified Data.Aeson.Encode as Aeson
+import qualified Data.Aeson.Text as Aeson
 import Data.ByteString.Lazy (ByteString)
 import Data.Function (on)
-import qualified Data.HashMap.Strict as H (toList)
+import qualified Data.HashMap.Strict as H (toList, mapKeys)
 import Data.List (intersperse, sortBy, elemIndex)
 import Data.Maybe (fromMaybe)
 import Data.Semigroup ((<>))
@@ -170,10 +174,16 @@
 fromValue st@PState{..} val = go val
   where
     go (Array v)  = fromCompound st ("[","]") fromValue (V.toList v)
-    go (Object m) = fromCompound st ("{","}") fromPair (pSort (H.toList m))
+    go (Object m) = fromCompound st ("{","}") fromPair (pSort (toList' m))
     go (Number x) = fromNumber st x
     go v          = Aeson.encodeToTextBuilder v
 
+#if MIN_VERSION_aeson(2,0,0)
+    toList' = fmap (\(k, v) -> (AK.toText k, v)) . AKM.toList
+#else
+    toList' = H.toList
+#endif
+
 fromCompound :: PState
              -> (Builder, Builder)
              -> (PState -> a -> Builder)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aeson-pretty-0.8.8/aeson-pretty.cabal 
new/aeson-pretty-0.8.9/aeson-pretty.cabal
--- old/aeson-pretty-0.8.8/aeson-pretty.cabal   2019-09-27 21:25:09.000000000 
+0200
+++ new/aeson-pretty-0.8.9/aeson-pretty.cabal   2001-09-09 03:46:40.000000000 
+0200
@@ -1,13 +1,13 @@
+cabal-version:  2.0
 name:           aeson-pretty
-version:        0.8.8
+version:        0.8.9
 license:        BSD3
 license-file:   LICENSE
 category:       Text, Web, JSON, Pretty Printer
 copyright:      Copyright 2011 Falko Peters
 author:         Falko Peters <[email protected]>
-maintainer:     Falko Peters <[email protected]>
+maintainer:     Martijn Bastiaan <[email protected]>
 stability:      experimental
-cabal-version:  >= 1.8
 homepage:       http://github.com/informatikr/aeson-pretty
 bug-reports:    http://github.com/informatikr/aeson-pretty/issues
 build-type:     Simple
@@ -30,6 +30,7 @@
 
 extra-source-files:
     README.markdown
+    CHANGELOG.markdown
 
 flag lib-only
     description: Only build/install the library, NOT the command-line tool.
@@ -40,7 +41,7 @@
         Data.Aeson.Encode.Pretty
 
     build-depends:
-        aeson >= 0.7,
+        aeson ^>= 1.0 || ^>=1.1 || ^>=1.2 || ^>=1.3 || ^>=1.4 || ^>=1.5 || 
^>=2.0,
         base >= 4.5,
         base-compat >= 0.9,
         bytestring >= 0.9,
@@ -54,11 +55,13 @@
         semigroups >= 0.18.2
 
     ghc-options: -Wall
+    default-language: Haskell2010
 
 executable aeson-pretty
     hs-source-dirs: cli-tool
     main-is: Main.hs
     other-modules: Paths_aeson_pretty
+    autogen-modules: Paths_aeson_pretty
 
     if flag(lib-only)
         buildable: False
@@ -72,7 +75,7 @@
             cmdargs >= 0.7
 
     ghc-options: -Wall
-    ghc-prof-options: -auto-all
+    default-language: Haskell2010
 
 source-repository head
     type:     git

Reply via email to