Hello community,
here is the log from the commit of package ghc-quickcheck-unicode for
openSUSE:Factory checked in at 2017-06-22 10:38:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-quickcheck-unicode (Old)
and /work/SRC/openSUSE:Factory/.ghc-quickcheck-unicode.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-quickcheck-unicode"
Thu Jun 22 10:38:38 2017 rev:2 rq:504094 version:1.0.1.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/ghc-quickcheck-unicode/ghc-quickcheck-unicode.changes
2016-11-15 17:57:32.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.ghc-quickcheck-unicode.new/ghc-quickcheck-unicode.changes
2017-06-22 10:38:39.964231061 +0200
@@ -1,0 +2,5 @@
+Wed May 31 14:01:12 UTC 2017 - [email protected]
+
+- Update to version 1.0.1.0.
+
+-------------------------------------------------------------------
Old:
----
quickcheck-unicode-1.0.0.1.tar.gz
New:
----
quickcheck-unicode-1.0.1.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-quickcheck-unicode.spec ++++++
--- /var/tmp/diff_new_pack.Fk2adB/_old 2017-06-22 10:38:40.788114909 +0200
+++ /var/tmp/diff_new_pack.Fk2adB/_new 2017-06-22 10:38:40.788114909 +0200
@@ -1,7 +1,7 @@
#
# spec file for package ghc-quickcheck-unicode
#
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,19 +18,17 @@
%global pkg_name quickcheck-unicode
Name: ghc-%{pkg_name}
-Version: 1.0.0.1
+Version: 1.0.1.0
Release: 0
Summary: Generator and shrink functions for testing Unicode-related
software
-License: BSD-3-Clause
-Group: System/Libraries
+License: BSD-2-Clause
+Group: Development/Languages/Other
Url: https://hackage.haskell.org/package/%{pkg_name}
Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires: ghc-Cabal-devel
-# Begin cabal-rpm deps:
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-# End cabal-rpm deps
%description
Generator and shrink functions for testing Unicode-related software.
@@ -50,15 +48,12 @@
%prep
%setup -q -n %{pkg_name}-%{version}
-
%build
%ghc_lib_build
-
%install
%ghc_lib_install
-
%post devel
%ghc_pkg_recache
++++++ quickcheck-unicode-1.0.0.1.tar.gz -> quickcheck-unicode-1.0.1.0.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/quickcheck-unicode-1.0.0.1/Test/QuickCheck/Unicode.hs
new/quickcheck-unicode-1.0.1.0/Test/QuickCheck/Unicode.hs
--- old/quickcheck-unicode-1.0.0.1/Test/QuickCheck/Unicode.hs 2015-03-24
21:24:39.000000000 +0100
+++ new/quickcheck-unicode-1.0.1.0/Test/QuickCheck/Unicode.hs 2017-05-21
03:54:35.000000000 +0200
@@ -2,7 +2,7 @@
-- |
-- Module : Test.QuickCheck.Unicode
--- Copyright : (c) 2014 Bryan O'Sullivan
+-- Copyright : (c) 2014-2017 Bryan O'Sullivan
-- License : BSD-style
-- Maintainer : [email protected]
-- Stability : stable
@@ -28,9 +28,11 @@
-- * Generators
, char
, string
+ , string1
-- ** Helpers
, list
+ , list1
-- ** Basic generators
, planes
@@ -74,11 +76,23 @@
string :: Gen String
string = list char
+-- | Generate a non-empty list of Unicode code points.
+string1 :: Gen String
+string1 = list char
+
-- | Generate a list of values.
list :: Gen a -> Gen [a]
-list gen =
+list gen = listN 0 gen
+
+-- | Generate a non-empty list of values.
+list1 :: Gen a -> Gen [a]
+list1 gen = listN 1 gen
+
+-- | Generate a list of at least /n/ values.
+listN :: Int -> Gen a -> Gen [a]
+listN m gen =
sized $ \n ->
- do k <- choose (0,n)
+ do k <- choose (m,n)
vectorOf k gen
-- | Shrink a Unicode code point.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/quickcheck-unicode-1.0.0.1/quickcheck-unicode.cabal
new/quickcheck-unicode-1.0.1.0/quickcheck-unicode.cabal
--- old/quickcheck-unicode-1.0.0.1/quickcheck-unicode.cabal 2015-03-24
21:24:39.000000000 +0100
+++ new/quickcheck-unicode-1.0.1.0/quickcheck-unicode.cabal 2017-05-21
03:54:35.000000000 +0200
@@ -1,16 +1,16 @@
name: quickcheck-unicode
-version: 1.0.0.1
+version: 1.0.1.0
homepage: https://github.com/bos/quickcheck-unicode
bug-reports: https://github.com/bos/quickcheck-unicode/issues
synopsis: Generator and shrink functions for testing
Unicode-related software.
description: Generator and shrink functions for testing
Unicode-related software.
-license: BSD3
+license: BSD2
license-file: LICENSE
author: Bryan O'Sullivan <[email protected]>
maintainer: Bryan O'Sullivan <[email protected]>
-copyright: 2014 Bryan O'Sullivan
+copyright: 2014-2017 Bryan O'Sullivan
category: Testing, Text
build-type: Simple
cabal-version: >= 1.8