Hello community, here is the log from the commit of package ghc-yaml for openSUSE:Factory checked in at 2017-06-04 01:59:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-yaml (Old) and /work/SRC/openSUSE:Factory/.ghc-yaml.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-yaml" Sun Jun 4 01:59:25 2017 rev:22 rq:499742 version:0.8.22.1 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-yaml/ghc-yaml.changes 2017-03-20 17:08:20.376233074 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-yaml.new/ghc-yaml.changes 2017-06-04 01:59:26.303511699 +0200 @@ -1,0 +2,5 @@ +Thu May 18 09:52:25 UTC 2017 - [email protected] + +- Update to version 0.8.22.1 with cabal2obs. + +------------------------------------------------------------------- Old: ---- yaml-0.8.22.tar.gz New: ---- yaml-0.8.22.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-yaml.spec ++++++ --- /var/tmp/diff_new_pack.Iddjx2/_old 2017-06-04 01:59:26.883429772 +0200 +++ /var/tmp/diff_new_pack.Iddjx2/_new 2017-06-04 01:59:26.887429207 +0200 @@ -19,7 +19,7 @@ %global pkg_name yaml %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.8.22 +Version: 0.8.22.1 Release: 0 Summary: Support for parsing and rendering YAML documents License: BSD-3-Clause @@ -55,7 +55,7 @@ %endif %description -Please see the README.md file. +Support for parsing and rendering YAML documents. %package devel Summary: Haskell %{pkg_name} library development files ++++++ yaml-0.8.22.tar.gz -> yaml-0.8.22.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yaml-0.8.22/ChangeLog.md new/yaml-0.8.22.1/ChangeLog.md --- old/yaml-0.8.22/ChangeLog.md 2017-02-16 10:53:35.000000000 +0100 +++ new/yaml-0.8.22.1/ChangeLog.md 2017-05-14 05:28:34.000000000 +0200 @@ -1,3 +1,8 @@ +## 0.8.22.1 + +* Make numeric string detection slightly smarter so, e.g., `.` does + not get quoted + ## 0.8.22 * Update to libyaml hosted on Github [#105](https://github.com/snoyberg/yaml/issues/105) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yaml-0.8.22/Data/Yaml/Internal.hs new/yaml-0.8.22.1/Data/Yaml/Internal.hs --- old/yaml-0.8.22/Data/Yaml/Internal.hs 2017-02-16 18:22:54.000000000 +0100 +++ new/yaml-0.8.22.1/Data/Yaml/Internal.hs 2017-05-14 05:27:45.000000000 +0200 @@ -284,10 +284,11 @@ "y Y yes Yes YES n N no No NO true True TRUE false False FALSE on On ON off Off OFF null Null NULL ~" isNumeric :: Text -> Bool -isNumeric = - T.all isNumeric' +isNumeric t = + T.all isNumeric' t && T.any isNumber t where - isNumeric' c = ('0' <= c && c <= '9') + isNumber c = '0' <= c && c <= '9' + isNumeric' c = isNumber c || c == 'e' || c == 'E' || c == '.' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yaml-0.8.22/test/Data/YamlSpec.hs new/yaml-0.8.22.1/test/Data/YamlSpec.hs --- old/yaml-0.8.22/test/Data/YamlSpec.hs 2017-02-16 10:46:12.000000000 +0100 +++ new/yaml-0.8.22.1/test/Data/YamlSpec.hs 2017-05-14 05:25:46.000000000 +0200 @@ -70,6 +70,7 @@ it "encode/decode strings" caseEncodeDecodeStrings it "decode invalid file" caseDecodeInvalid it "processes datatypes" caseDataTypes + it "encode invalid numbers" caseEncodeInvalidNumbers describe "Data.Yaml.Pretty" $ do it "encode/decode" caseEncodeDecodeDataPretty it "encode/decode strings" caseEncodeDecodeStringsPretty @@ -434,6 +435,10 @@ , ("null", D.Null) ] +caseEncodeInvalidNumbers :: Assertion +caseEncodeInvalidNumbers = + D.encode (D.String ".") @?= ".\n" + caseDataTypesPretty :: Assertion caseDataTypesPretty = D.decode (Pretty.encodePretty Pretty.defConfig val) @?= Just val diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yaml-0.8.22/yaml.cabal new/yaml-0.8.22.1/yaml.cabal --- old/yaml-0.8.22/yaml.cabal 2017-02-16 18:04:57.000000000 +0100 +++ new/yaml-0.8.22.1/yaml.cabal 2017-05-14 05:28:14.000000000 +0200 @@ -1,5 +1,5 @@ name: yaml -version: 0.8.22 +version: 0.8.22.1 license: BSD3 license-file: LICENSE author: Michael Snoyman <[email protected]>, Anton Ageev <[email protected]>,Kirill Simonov
