Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package ghc-pandoc-types for
openSUSE:Factory checked in at 2023-08-18 19:28:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-pandoc-types (Old)
and /work/SRC/openSUSE:Factory/.ghc-pandoc-types.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-pandoc-types"
Fri Aug 18 19:28:06 2023 rev:39 rq:1104413 version:1.23.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-pandoc-types/ghc-pandoc-types.changes
2023-07-18 21:53:54.730224042 +0200
+++
/work/SRC/openSUSE:Factory/.ghc-pandoc-types.new.1766/ghc-pandoc-types.changes
2023-08-18 19:28:23.903320124 +0200
@@ -1,0 +2,16 @@
+Sun Aug 6 18:14:57 UTC 2023 - Peter Simons <[email protected]>
+
+- Update pandoc-types to version 1.23.1.
+ [1.23.1]
+
+ * Restore toJSONFilter instance for pure `a -> [a]`.
+ This went missing after my ill-considered revision to #105,
+ commit 183af9d9f1066be974ac55fd23a4c985999d3ce8 . See jgm/pandoc#8976.
+
+ * Generalize ToJSONFilter instance. Previously a pure function `a -> a`
+ could only be promoted to a filter in IO. Now we allow it to work with
+ any instance of MonadIO. (This adds to #105.)
+
+ * Allow bytestring 0.12.
+
+-------------------------------------------------------------------
Old:
----
pandoc-types-1.23.0.1.tar.gz
New:
----
pandoc-types-1.23.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-pandoc-types.spec ++++++
--- /var/tmp/diff_new_pack.hetVAO/_old 2023-08-18 19:28:24.791321717 +0200
+++ /var/tmp/diff_new_pack.hetVAO/_new 2023-08-18 19:28:24.799321731 +0200
@@ -20,7 +20,7 @@
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
-Version: 1.23.0.1
+Version: 1.23.1
Release: 0
Summary: Types for representing a structured document
License: GPL-2.0-only
++++++ pandoc-types-1.23.0.1.tar.gz -> pandoc-types-1.23.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pandoc-types-1.23.0.1/changelog
new/pandoc-types-1.23.1/changelog
--- old/pandoc-types-1.23.0.1/changelog 2001-09-09 03:46:40.000000000 +0200
+++ new/pandoc-types-1.23.1/changelog 2001-09-09 03:46:40.000000000 +0200
@@ -1,3 +1,15 @@
+[1.23.1]
+
+ * Restore toJSONFilter instance for pure `a -> [a]`.
+ This went missing after my ill-considered revision to #105,
+ commit 183af9d9f1066be974ac55fd23a4c985999d3ce8 . See jgm/pandoc#8976.
+
+ * Generalize ToJSONFilter instance. Previously a pure function `a -> a`
+ could only be promoted to a filter in IO. Now we allow it to work with
+ any instance of MonadIO. (This adds to #105.)
+
+ * Allow bytestring 0.12.
+
[1.23.0.1]
* Allow aeson 2.2.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pandoc-types-1.23.0.1/pandoc-types.cabal
new/pandoc-types-1.23.1/pandoc-types.cabal
--- old/pandoc-types-1.23.0.1/pandoc-types.cabal 2001-09-09
03:46:40.000000000 +0200
+++ new/pandoc-types-1.23.1/pandoc-types.cabal 2001-09-09 03:46:40.000000000
+0200
@@ -1,6 +1,6 @@
cabal-version: 2.2
Name: pandoc-types
-version: 1.23.0.1
+version: 1.23.1
Synopsis: Types for representing a structured document
Description: @Text.Pandoc.Definition@ defines the 'Pandoc' data
structure, which is used by pandoc to represent
@@ -32,9 +32,6 @@
Copyright: (c) 2006-2023 John MacFarlane
Category: Text
Build-type: Simple
-Tested-With: GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.2,
- GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.7,
- GHC == 9.0.2, GHC == 9.2.5, GHC == 9.4.4
Extra-Source-Files: changelog
Source-repository head
type: git
@@ -56,7 +53,7 @@
deepseq >= 1.4.1 && < 1.5,
syb >= 0.1 && < 0.8,
ghc-prim >= 0.2,
- bytestring >= 0.9 && < 0.12,
+ bytestring >= 0.9 && < 0.13,
aeson >= 0.6.2 && < 2.3,
transformers >= 0.2 && < 0.7,
QuickCheck >= 2.10 && < 2.15
@@ -76,7 +73,7 @@
aeson >= 0.6.2 && < 2.3,
containers >= 0.3,
text,
- bytestring >= 0.9 && < 0.12,
+ bytestring >= 0.9 && < 0.13,
test-framework >= 0.3 && < 0.9,
test-framework-hunit >= 0.2 && < 0.4,
test-framework-quickcheck2 >= 0.2.9 && < 0.4,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pandoc-types-1.23.0.1/src/Text/Pandoc/JSON.hs
new/pandoc-types-1.23.1/src/Text/Pandoc/JSON.hs
--- old/pandoc-types-1.23.0.1/src/Text/Pandoc/JSON.hs 2001-09-09
03:46:40.000000000 +0200
+++ new/pandoc-types-1.23.1/src/Text/Pandoc/JSON.hs 2001-09-09
03:46:40.000000000 +0200
@@ -103,11 +103,17 @@
class ToJSONFilter m a where
toJSONFilter :: a -> m ()
-instance (Walkable a Pandoc) => ToJSONFilter IO (a -> a) where
- toJSONFilter f = BL.getContents >>=
+instance (Walkable a Pandoc, MonadIO m) => ToJSONFilter m (a -> a) where
+ toJSONFilter f = liftIO $ BL.getContents >>=
BL.putStr . encode . (walk f :: Pandoc -> Pandoc) . either error id .
eitherDecode'
+instance (Walkable [a] Pandoc, MonadIO m) => ToJSONFilter m (a -> [a]) where
+ toJSONFilter f = liftIO $ BL.getContents >>=
+ BL.putStr . encode . (walk (concatMap f) :: Pandoc -> Pandoc) .
+ either error id .
+ eitherDecode'
+
instance (Walkable a Pandoc, MonadIO m) => ToJSONFilter m (a -> m a) where
toJSONFilter f = do
c <- liftIO BL.getContents