Hello community, here is the log from the commit of package dhall-yaml for openSUSE:Factory checked in at 2020-09-27 11:48:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dhall-yaml (Old) and /work/SRC/openSUSE:Factory/.dhall-yaml.new.4249 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "dhall-yaml" Sun Sep 27 11:48:50 2020 rev:2 rq:835597 version:1.2.2 Changes: -------- --- /work/SRC/openSUSE:Factory/dhall-yaml/dhall-yaml.changes 2020-09-15 16:16:59.981951688 +0200 +++ /work/SRC/openSUSE:Factory/.dhall-yaml.new.4249/dhall-yaml.changes 2020-09-27 11:48:53.899986682 +0200 @@ -1,0 +2,8 @@ +Sat Sep 12 16:17:54 UTC 2020 - psim...@suse.com + +- Update dhall-yaml to version 1.2.2. + 1.2.2 + + * [The `--documents` flag now wraps non-`List`s in a document](https://github.com/dhall-lang/dhall-haskell/pull/1977) + +------------------------------------------------------------------- Old: ---- dhall-yaml-1.2.1.tar.gz dhall-yaml.cabal New: ---- dhall-yaml-1.2.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dhall-yaml.spec ++++++ --- /var/tmp/diff_new_pack.HPDZri/_old 2020-09-27 11:48:54.691987536 +0200 +++ /var/tmp/diff_new_pack.HPDZri/_new 2020-09-27 11:48:54.695987540 +0200 @@ -19,13 +19,12 @@ %global pkg_name dhall-yaml %bcond_with tests Name: %{pkg_name} -Version: 1.2.1 +Version: 1.2.2 Release: 0 Summary: Convert between Dhall and YAML License: GPL-3.0-or-later URL: https://hackage.haskell.org/package/%{name} Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz -Source1: https://hackage.haskell.org/package/%{name}-%{version}/revision/2.cabal#/%{name}.cabal BuildRequires: chrpath BuildRequires: ghc-Cabal-devel BuildRequires: ghc-HsYAML-aeson-devel @@ -75,7 +74,6 @@ %prep %autosetup -cp -p %{SOURCE1} %{name}.cabal %build %ghc_lib_build ++++++ dhall-yaml-1.2.1.tar.gz -> dhall-yaml-1.2.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dhall-yaml-1.2.1/CHANGELOG.md new/dhall-yaml-1.2.2/CHANGELOG.md --- old/dhall-yaml-1.2.1/CHANGELOG.md 2020-08-03 07:29:30.000000000 +0200 +++ new/dhall-yaml-1.2.2/CHANGELOG.md 2020-09-11 07:03:08.000000000 +0200 @@ -1,3 +1,7 @@ +1.2.2 + +* [The `--documents` flag now wraps non-`List`s in a document](https://github.com/dhall-lang/dhall-haskell/pull/1977) + 1.2.1 * [Format documents with leading `---`](https://github.com/dhall-lang/dhall-haskell/pull/1865) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dhall-yaml-1.2.1/dhall-yaml.cabal new/dhall-yaml-1.2.2/dhall-yaml.cabal --- old/dhall-yaml-1.2.1/dhall-yaml.cabal 2020-08-03 07:29:30.000000000 +0200 +++ new/dhall-yaml-1.2.2/dhall-yaml.cabal 2020-09-11 07:03:08.000000000 +0200 @@ -1,5 +1,5 @@ Name: dhall-yaml -Version: 1.2.1 +Version: 1.2.2 Cabal-Version: >=1.10 Build-Type: Simple Tested-With: GHC == 8.4.3, GHC == 8.6.1 @@ -37,9 +37,9 @@ base >= 4.11.0.0 && < 5 , aeson >= 1.0.0.0 && < 1.6 , bytestring < 0.11, - dhall >= 1.31.0 && < 1.35, + dhall >= 1.31.0 && < 1.36, dhall-json >= 1.6.0 && < 1.8 , - optparse-applicative >= 0.14.0.0 && < 0.16, + optparse-applicative >= 0.14.0.0 && < 0.17, text >= 0.11.1.0 && < 1.3 , vector Exposed-Modules: @@ -66,7 +66,7 @@ Build-Depends: base , aeson , - ansi-terminal >= 0.6.3.1 && < 0.11, + ansi-terminal >= 0.6.3.1 && < 0.12, bytestring < 0.11, dhall , dhall-json , diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dhall-yaml-1.2.1/src/Dhall/Yaml.hs new/dhall-yaml-1.2.2/src/Dhall/Yaml.hs --- old/dhall-yaml-1.2.1/src/Dhall/Yaml.hs 2020-08-03 07:29:30.000000000 +0200 +++ new/dhall-yaml-1.2.2/src/Dhall/Yaml.hs 2020-09-11 07:03:08.000000000 +0200 @@ -57,11 +57,14 @@ -> ByteString jsonToYaml json documents quoted = case (documents, json) of - (True, Data.Aeson.Array elems) - -> Data.ByteString.intercalate "\n" - $ (("---\n" <>) . Data.ByteString.Lazy.toStrict . encoder . (:[])) <$> Data.Vector.toList elems + (True, Data.Aeson.Array elems) -> document elems + (True, value) -> document (pure value) _ -> Data.ByteString.Lazy.toStrict (encoder [json]) where + document elems = + Data.ByteString.intercalate "\n" + $ (("---\n" <>) . Data.ByteString.Lazy.toStrict . encoder . (:[])) <$> Data.Vector.toList elems + style (Y.SStr s) | "\n" `Text.isInfixOf` s = Right (YE.untagged, YE.Literal YE.Clip YE.IndentAuto, s) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dhall-yaml-1.2.1/tasty/data/single-document-bare.yaml new/dhall-yaml-1.2.2/tasty/data/single-document-bare.yaml --- old/dhall-yaml-1.2.1/tasty/data/single-document-bare.yaml 2020-08-03 07:29:30.000000000 +0200 +++ new/dhall-yaml-1.2.2/tasty/data/single-document-bare.yaml 2020-09-11 07:03:08.000000000 +0200 @@ -1 +1,2 @@ +--- abc