Hello community,
here is the log from the commit of package ghc-quickcheck-special for
openSUSE:Factory checked in at 2017-05-10 20:48:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-quickcheck-special (Old)
and /work/SRC/openSUSE:Factory/.ghc-quickcheck-special.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-quickcheck-special"
Wed May 10 20:48:39 2017 rev:2 rq:489365 version:0.1.0.4
Changes:
--------
---
/work/SRC/openSUSE:Factory/ghc-quickcheck-special/ghc-quickcheck-special.changes
2017-04-12 18:08:37.498362391 +0200
+++
/work/SRC/openSUSE:Factory/.ghc-quickcheck-special.new/ghc-quickcheck-special.changes
2017-05-10 20:48:40.530442777 +0200
@@ -1,0 +2,5 @@
+Tue Mar 14 09:26:16 UTC 2017 - [email protected]
+
+- Update to version 0.1.0.4 with cabal2obs.
+
+-------------------------------------------------------------------
Old:
----
quickcheck-special-0.1.0.3.tar.gz
New:
----
quickcheck-special-0.1.0.4.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-quickcheck-special.spec ++++++
--- /var/tmp/diff_new_pack.9RTBMn/_old 2017-05-10 20:48:41.474309591 +0200
+++ /var/tmp/diff_new_pack.9RTBMn/_new 2017-05-10 20:48:41.478309026 +0200
@@ -18,7 +18,7 @@
%global pkg_name quickcheck-special
Name: ghc-%{pkg_name}
-Version: 0.1.0.3
+Version: 0.1.0.4
Release: 0
Summary: Edge cases and special values for QuickCheck Arbitrary
instances
License: MIT
++++++ quickcheck-special-0.1.0.3.tar.gz -> quickcheck-special-0.1.0.4.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/quickcheck-special-0.1.0.3/quickcheck-special.cabal
new/quickcheck-special-0.1.0.4/quickcheck-special.cabal
--- old/quickcheck-special-0.1.0.3/quickcheck-special.cabal 2017-01-30
14:17:31.000000000 +0100
+++ new/quickcheck-special-0.1.0.4/quickcheck-special.cabal 2017-03-05
13:44:33.000000000 +0100
@@ -3,7 +3,7 @@
-- see: https://github.com/sol/hpack
name: quickcheck-special
-version: 0.1.0.3
+version: 0.1.0.4
synopsis: Edge cases and special values for QuickCheck Arbitrary
instances
description: The standard Arbitrary instances of QuickCheck don't generate
special values. This is fixed by this package which provides the newtype
Special with an Arbitrary instance. The special values are given by the
SpecialValues typeclass.
category: Testing
@@ -14,7 +14,7 @@
copyright: 2016 Daniel Mendler
license: MIT
license-file: LICENSE
-tested-with: GHC == 7.0.4, GHC == 7.2.2, GHC == 7.4.2, GHC == 7.6.3, GHC ==
7.8.4, GHC == 7.10.3, GHC == 8.0.1
+tested-with: GHC == 7.2.2, GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.4, GHC ==
7.10.3, GHC == 8.0.1
build-type: Simple
cabal-version: >= 1.10
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/quickcheck-special-0.1.0.3/src/Test/QuickCheck/Special.hs
new/quickcheck-special-0.1.0.4/src/Test/QuickCheck/Special.hs
--- old/quickcheck-special-0.1.0.3/src/Test/QuickCheck/Special.hs
2017-01-30 14:12:56.000000000 +0100
+++ new/quickcheck-special-0.1.0.4/src/Test/QuickCheck/Special.hs
2017-03-05 12:22:50.000000000 +0100
@@ -15,6 +15,7 @@
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
+{-# LANGUAGE FlexibleInstances #-}
module Test.QuickCheck.Special (
Special(..),
SpecialValues(..),
@@ -22,6 +23,7 @@
import Data.Int
import Data.Word
+import Data.Ratio
import Numeric.Natural (Natural)
import Numeric.IEEE
import Test.QuickCheck
@@ -66,6 +68,9 @@
instance SpecialValues Natural where
specialValues = [ 0, 1, fromIntegral (maxBound :: Word64) + 1 ]
+instance SpecialValues Rational where
+ specialValues = [ 0, 1, -1, 0 % 1, - 0 % 1]
+
instance SpecialValues Char where
specialValues = specialBoundedEnum ++ "\0\a\b\f\n\r\t\v\'\"\\aƤ "