commit ghc-tasty for openSUSE:Factory

2020-08-28 Thread root
Hello community,

here is the log from the commit of package ghc-tasty for openSUSE:Factory 
checked in at 2020-08-28 21:38:54

Comparing /work/SRC/openSUSE:Factory/ghc-tasty (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-tasty.new.3399 (New)


Package is "ghc-tasty"

Fri Aug 28 21:38:54 2020 rev:2 rq:829437 version:1.3.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-tasty/ghc-tasty.changes  2020-06-19 
17:04:23.964671514 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-tasty.new.3399/ghc-tasty.changes
2020-08-28 21:38:54.852824318 +0200
@@ -1,0 +2,5 @@
+Tue Aug 18 10:46:10 UTC 2020 - Peter Simons 
+
+- Replace %setup -q with the more modern %autosetup macro.
+
+---



Other differences:
--
++ ghc-tasty.spec ++
--- /var/tmp/diff_new_pack.ObO8my/_old  2020-08-28 21:38:55.340824549 +0200
+++ /var/tmp/diff_new_pack.ObO8my/_new  2020-08-28 21:38:55.344824551 +0200
@@ -54,7 +54,7 @@
 This package provides the Haskell %{pkg_name} library development files.
 
 %prep
-%setup -q -n %{pkg_name}-%{version}
+%autosetup -n %{pkg_name}-%{version}
 
 %build
 %ghc_lib_build




commit ghc-tasty for openSUSE:Factory

2017-08-31 Thread root
Hello community,

here is the log from the commit of package ghc-tasty for openSUSE:Factory 
checked in at 2017-08-31 21:00:05

Comparing /work/SRC/openSUSE:Factory/ghc-tasty (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-tasty.new (New)


Package is "ghc-tasty"

Thu Aug 31 21:00:05 2017 rev:9 rq:513506 version:0.11.2.3

Changes:

--- /work/SRC/openSUSE:Factory/ghc-tasty/ghc-tasty.changes  2017-07-27 
11:12:20.632626708 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-tasty.new/ghc-tasty.changes 2017-08-31 
21:00:06.948626877 +0200
@@ -1,0 +2,5 @@
+Thu Jul 27 14:07:45 UTC 2017 - psim...@suse.com
+
+- Update to version 0.11.2.3.
+
+---

Old:

  tasty-0.11.2.2.tar.gz

New:

  tasty-0.11.2.3.tar.gz



Other differences:
--
++ ghc-tasty.spec ++
--- /var/tmp/diff_new_pack.i8aBAQ/_old  2017-08-31 21:00:09.008337483 +0200
+++ /var/tmp/diff_new_pack.i8aBAQ/_new  2017-08-31 21:00:09.036333549 +0200
@@ -18,7 +18,7 @@
 
 %global pkg_name tasty
 Name:   ghc-%{pkg_name}
-Version:0.11.2.2
+Version:0.11.2.3
 Release:0
 Summary:Modern and extensible testing framework
 License:MIT

++ tasty-0.11.2.2.tar.gz -> tasty-0.11.2.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-0.11.2.2/CHANGELOG.md 
new/tasty-0.11.2.3/CHANGELOG.md
--- old/tasty-0.11.2.2/CHANGELOG.md 2017-07-06 11:10:26.0 +0200
+++ new/tasty-0.11.2.3/CHANGELOG.md 2017-07-18 17:08:48.0 +0200
@@ -1,6 +1,11 @@
 Changes
 ===
 
+Version 0.11.2.3
+
+
+Make filtering tests (`-p`) work faster
+
 Version 0.11.2.2
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-0.11.2.2/Test/Tasty/Patterns.hs 
new/tasty-0.11.2.3/Test/Tasty/Patterns.hs
--- old/tasty-0.11.2.2/Test/Tasty/Patterns.hs   2017-07-06 11:05:04.0 
+0200
+++ new/tasty-0.11.2.3/Test/Tasty/Patterns.hs   2017-07-18 08:32:55.0 
+0200
@@ -115,20 +115,27 @@
 -- | Test a path (which is the sequence of group titles, possibly followed
 -- by the test title) against a pattern
 testPatternMatches :: TestPattern -> [String] -> Bool
-testPatternMatches NoPattern _ = True
-testPatternMatches test_pattern path = not_maybe $ any (=~ tokens_regex) 
things_to_match
+testPatternMatches test_pattern =
+  -- It is important that GHC assigns arity 1 to this function,
+  -- so that compilation of the regex is shared among the invocations.
+  -- See #175.
+  case test_pattern of
+NoPattern -> const True
+TestPattern {} -> \path ->
+  let
+path_to_consider | tp_categories_only test_pattern = dropLast 1 path
+ | otherwise   = path
+things_to_match = case tp_match_mode test_pattern of
+-- See if the tokens match any single path component
+TestMatchMode -> path_to_consider
+-- See if the tokens match any prefix of the path
+PathMatchMode -> map pathToString $ inits path_to_consider
+  in not_maybe . any (match tokens_regex) $ things_to_match
   where
 not_maybe | tp_negated test_pattern = not
   | otherwise   = id
-path_to_consider | tp_categories_only test_pattern = dropLast 1 path
- | otherwise   = path
-tokens_regex = buildTokenRegex (tp_tokens test_pattern)
-
-things_to_match = case tp_match_mode test_pattern of
--- See if the tokens match any single path component
-TestMatchMode -> path_to_consider
--- See if the tokens match any prefix of the path
-PathMatchMode -> map pathToString $ inits path_to_consider
+tokens_regex :: Regex
+tokens_regex = makeRegex $ buildTokenRegex (tp_tokens test_pattern)
 
 
 buildTokenRegex :: [Token] -> String
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-0.11.2.2/tasty.cabal 
new/tasty-0.11.2.3/tasty.cabal
--- old/tasty-0.11.2.2/tasty.cabal  2017-07-06 11:07:11.0 +0200
+++ new/tasty-0.11.2.3/tasty.cabal  2017-07-18 17:08:39.0 +0200
@@ -2,7 +2,7 @@
 --  see http://haskell.org/cabal/users-guide/
 
 name:tasty
-version: 0.11.2.2
+version: 0.11.2.3
 synopsis:Modern and extensible testing framework
 description: Tasty is a modern testing framework for Haskell.
  It lets you combine your unit tests, golden




commit ghc-tasty for openSUSE:Factory

2017-07-27 Thread root
Hello community,

here is the log from the commit of package ghc-tasty for openSUSE:Factory 
checked in at 2017-07-27 11:12:17

Comparing /work/SRC/openSUSE:Factory/ghc-tasty (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-tasty.new (New)


Package is "ghc-tasty"

Thu Jul 27 11:12:17 2017 rev:8 rq:511521 version:0.11.2.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-tasty/ghc-tasty.changes  2017-06-04 
02:01:16.247989883 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-tasty.new/ghc-tasty.changes 2017-07-27 
11:12:20.632626708 +0200
@@ -1,0 +2,5 @@
+Tue Jul 11 03:02:25 UTC 2017 - psim...@suse.com
+
+- Update to version 0.11.2.2.
+
+---

Old:

  tasty-0.11.2.1.tar.gz

New:

  tasty-0.11.2.2.tar.gz



Other differences:
--
++ ghc-tasty.spec ++
--- /var/tmp/diff_new_pack.lxheNm/_old  2017-07-27 11:12:22.000433496 +0200
+++ /var/tmp/diff_new_pack.lxheNm/_new  2017-07-27 11:12:22.004432931 +0200
@@ -18,7 +18,7 @@
 
 %global pkg_name tasty
 Name:   ghc-%{pkg_name}
-Version:0.11.2.1
+Version:0.11.2.2
 Release:0
 Summary:Modern and extensible testing framework
 License:MIT
@@ -43,7 +43,7 @@
 %description
 Tasty is a modern testing framework for Haskell. It lets you combine your unit
 tests, golden tests, QuickCheck/SmallCheck properties, and any other types of
-tests into a single test suite. See .
+tests into a single test suite.
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
@@ -77,6 +77,6 @@
 
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
-%doc CHANGELOG.md
+%doc CHANGELOG.md README.md
 
 %changelog

++ tasty-0.11.2.1.tar.gz -> tasty-0.11.2.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-0.11.2.1/CHANGELOG.md 
new/tasty-0.11.2.2/CHANGELOG.md
--- old/tasty-0.11.2.1/CHANGELOG.md 2017-05-05 09:50:50.0 +0200
+++ new/tasty-0.11.2.2/CHANGELOG.md 2017-07-06 11:10:26.0 +0200
@@ -1,6 +1,12 @@
 Changes
 ===
 
+Version 0.11.2.2
+
+
+Fix a critical bug in the quiet mode (`-q`/`--quiet`):
+the exit status could be wrong or the test suite could hang.
+
 Version 0.11.2.1
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-0.11.2.1/README.md new/tasty-0.11.2.2/README.md
--- old/tasty-0.11.2.1/README.md1970-01-01 01:00:00.0 +0100
+++ new/tasty-0.11.2.2/README.md2017-07-06 09:41:47.0 +0200
@@ -0,0 +1,445 @@
+# Tasty
+
+**Tasty** is a modern testing framework for Haskell.
+
+It lets you combine your unit tests, golden tests, QuickCheck/SmallCheck
+properties, and any other types of tests into a single test suite.
+
+Features:
+
+* Run tests in parallel but report results in a deterministic order
+* Filter the tests to be run using patterns specified on the command line
+* Hierarchical, colored display of test results
+* Reporting of test statistics
+* Acquire and release resources (sockets, temporary files etc.) that can be
+  shared among several tests
+* Extensibility: add your own test providers and ingredients (runners) above 
and
+  beyond those provided
+
+[![Build 
Status](https://travis-ci.org/feuerbach/tasty.png?branch=master)](https://travis-ci.org/feuerbach/tasty)
+
+To find out what's new, read the **[change log][]**.
+
+[change log]: https://github.com/feuerbach/tasty/blob/master/core/CHANGELOG.md
+
+Ask any tasty-related questions on the **[mailing list][]** or IRC channel
+**#tasty** at FreeNode ([logs & stats][ircbrowse]).
+
+[mailing list]: https://groups.google.com/forum/#!forum/haskell-tasty
+[ircbrowse]: http://ircbrowse.net/tasty
+
+## Example
+
+Here's how your `test.hs` might look like:
+
+```haskell
+import Test.Tasty
+import Test.Tasty.SmallCheck as SC
+import Test.Tasty.QuickCheck as QC
+import Test.Tasty.HUnit
+
+import Data.List
+import Data.Ord
+
+main = defaultMain tests
+
+tests :: TestTree
+tests = testGroup "Tests" [properties, unitTests]
+
+properties :: TestTree
+properties = testGroup "Properties" [scProps, qcProps]
+
+scProps = testGroup "(checked by SmallCheck)"
+  [ SC.testProperty "sort == sort . reverse" $
+  \list -> sort (list :: [Int]) == sort (reverse list)
+  , SC.testProperty "Fermat's little theorem" $
+  \x -> ((x :: Integer)^7 - x) `mod` 7 == 0
+  -- the following property does not hold
+  , SC.testProperty "Fermat's last theorem" $
+  \x y z n ->
+(n :: Integer) >= 3 SC.==> x^n + y^n /= (z^n :: Integer)
+  ]
+
+qcProps = testGroup "(checked by QuickCheck)"
+  [ QC.testProperty "sort == sort . reverse" 

commit ghc-tasty for openSUSE:Factory

2017-06-03 Thread root
Hello community,

here is the log from the commit of package ghc-tasty for openSUSE:Factory 
checked in at 2017-06-04 02:01:15

Comparing /work/SRC/openSUSE:Factory/ghc-tasty (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-tasty.new (New)


Package is "ghc-tasty"

Sun Jun  4 02:01:15 2017 rev:7 rq:500841 version:0.11.2.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-tasty/ghc-tasty.changes  2017-05-27 
13:15:39.950401017 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-tasty.new/ghc-tasty.changes 2017-06-04 
02:01:16.247989883 +0200
@@ -1,0 +2,5 @@
+Thu May 18 09:52:27 UTC 2017 - psim...@suse.com
+
+- Update to version 0.11.2.1 with cabal2obs.
+
+---

Old:

  tasty-0.11.2.tar.gz
  tasty.cabal

New:

  tasty-0.11.2.1.tar.gz



Other differences:
--
++ ghc-tasty.spec ++
--- /var/tmp/diff_new_pack.t3OZaD/_old  2017-06-04 02:01:16.879900689 +0200
+++ /var/tmp/diff_new_pack.t3OZaD/_new  2017-06-04 02:01:16.883900125 +0200
@@ -18,14 +18,13 @@
 
 %global pkg_name tasty
 Name:   ghc-%{pkg_name}
-Version:0.11.2
+Version:0.11.2.1
 Release:0
 Summary:Modern and extensible testing framework
 License:MIT
 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
-Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-ansi-terminal-devel
 BuildRequires:  ghc-async-devel
@@ -59,7 +58,6 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++ tasty-0.11.2.tar.gz -> tasty-0.11.2.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-0.11.2/CHANGELOG.md 
new/tasty-0.11.2.1/CHANGELOG.md
--- old/tasty-0.11.2/CHANGELOG.md   2017-02-13 10:44:23.0 +0100
+++ new/tasty-0.11.2.1/CHANGELOG.md 2017-05-05 09:50:50.0 +0200
@@ -1,6 +1,11 @@
 Changes
 ===
 
+Version 0.11.2.1
+
+
+Fix compatibility with the latest `unbounded-delays`
+
 Version 0.11.2
 --
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-0.11.2/Test/Tasty/Run.hs 
new/tasty-0.11.2.1/Test/Tasty/Run.hs
--- old/tasty-0.11.2/Test/Tasty/Run.hs  2015-10-03 14:34:38.0 +0200
+++ new/tasty-0.11.2.1/Test/Tasty/Run.hs2017-05-05 07:52:57.0 
+0200
@@ -15,7 +15,7 @@
 import Control.Monad.Writer
 import Control.Monad.Reader
 import Control.Concurrent.STM
-import Control.Concurrent.Timeout
+import Control.Concurrent.Timeout (timeout)
 import Control.Concurrent.Async
 import Control.Exception as E
 import Control.Applicative
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-0.11.2/tasty.cabal 
new/tasty-0.11.2.1/tasty.cabal
--- old/tasty-0.11.2/tasty.cabal2017-02-13 10:44:26.0 +0100
+++ new/tasty-0.11.2.1/tasty.cabal  2017-05-05 09:50:20.0 +0200
@@ -2,7 +2,7 @@
 --  see http://haskell.org/cabal/users-guide/
 
 name:tasty
-version: 0.11.2
+version: 0.11.2.1
 synopsis:Modern and extensible testing framework
 description: Tasty is a modern testing framework for Haskell.
  It lets you combine your unit tests, golden




commit ghc-tasty for openSUSE:Factory

2017-05-27 Thread root
Hello community,

here is the log from the commit of package ghc-tasty for openSUSE:Factory 
checked in at 2017-05-27 13:15:39

Comparing /work/SRC/openSUSE:Factory/ghc-tasty (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-tasty.new (New)


Package is "ghc-tasty"

Sat May 27 13:15:39 2017 rev:6 rq:495470 version:0.11.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-tasty/ghc-tasty.changes  2017-03-14 
10:06:02.216710786 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-tasty.new/ghc-tasty.changes 2017-05-27 
13:15:39.950401017 +0200
@@ -1,0 +2,5 @@
+Mon May  8 17:29:55 UTC 2017 - psim...@suse.com
+
+- Update to version 0.11.2 revision 1 with cabal2obs.
+
+---

New:

  tasty.cabal



Other differences:
--
++ ghc-tasty.spec ++
--- /var/tmp/diff_new_pack.orbNUK/_old  2017-05-27 13:15:40.694295847 +0200
+++ /var/tmp/diff_new_pack.orbNUK/_new  2017-05-27 13:15:40.698295281 +0200
@@ -25,6 +25,7 @@
 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
+Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-ansi-terminal-devel
 BuildRequires:  ghc-async-devel
@@ -58,6 +59,7 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
+cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++ tasty.cabal ++
-- Initial tasty.cabal generated by cabal init.  For further documentation,
--  see http://haskell.org/cabal/users-guide/

name:tasty
version: 0.11.2
x-revision: 1
synopsis:Modern and extensible testing framework
description: Tasty is a modern testing framework for Haskell.
 It lets you combine your unit tests, golden
 tests, QuickCheck/SmallCheck properties, and any
 other types of tests into a single test suite.
 See .
license: MIT
license-file:LICENSE
author:  Roman Cheplyaka 
maintainer:  Roman Cheplyaka 
homepage:http://documentup.com/feuerbach/tasty
bug-reports: https://github.com/feuerbach/tasty/issues
-- copyright:   
category:Testing
build-type:  Simple
extra-source-files:  CHANGELOG.md
cabal-version:   >=1.10

Source-repository head
  type: git
  location: git://github.com/feuerbach/tasty.git
  subdir:   core

library
  exposed-modules:
Test.Tasty,
Test.Tasty.Options,
Test.Tasty.Providers,
Test.Tasty.Runners
Test.Tasty.Ingredients,
Test.Tasty.Ingredients.Basic
  other-modules:
Test.Tasty.Parallel,
Test.Tasty.Core,
Test.Tasty.Options.Core,
Test.Tasty.Options.Env,
Test.Tasty.Patterns,
Test.Tasty.Run,
Test.Tasty.Runners.Reducers,
Test.Tasty.Runners.Utils,
Test.Tasty.CmdLine,
Test.Tasty.Ingredients.ConsoleReporter
Test.Tasty.Ingredients.ListTests
Test.Tasty.Ingredients.IncludingOptions
  build-depends:
base >= 4.5 && < 5,
stm >= 2.3 && < 2.5,
containers < 0.6,
mtl < 2.3,
tagged >= 0.5 && < 0.9,
regex-tdfa >= 1.1.8.2 && < 1.3,
optparse-applicative >= 0.11 && < 0.14,
deepseq >= 1.3 && < 1.5,
unbounded-delays >= 0.1 && < 0.1.1,
async >= 2.0 && < 2.2,
ansi-terminal >= 0.6.2 && < 0.7,
clock >= 0.4.4.0 && < 0.8

  if impl(ghc < 7.6)
-- for GHC.Generics
build-depends: ghc-prim

  -- hs-source-dirs:  
  default-language:Haskell2010
  ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing



commit ghc-tasty for openSUSE:Factory

2017-03-14 Thread root
Hello community,

here is the log from the commit of package ghc-tasty for openSUSE:Factory 
checked in at 2017-03-14 10:06:01

Comparing /work/SRC/openSUSE:Factory/ghc-tasty (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-tasty.new (New)


Package is "ghc-tasty"

Tue Mar 14 10:06:01 2017 rev:5 rq:461685 version:0.11.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-tasty/ghc-tasty.changes  2017-02-11 
01:42:15.815862896 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-tasty.new/ghc-tasty.changes 2017-03-14 
10:06:02.216710786 +0100
@@ -1,0 +2,5 @@
+Mon Feb 20 08:42:30 UTC 2017 - psim...@suse.com
+
+- Update to version 0.11.2 with cabal2obs.
+
+---

Old:

  tasty-0.11.1.tar.gz

New:

  tasty-0.11.2.tar.gz



Other differences:
--
++ ghc-tasty.spec ++
--- /var/tmp/diff_new_pack.WdzORF/_old  2017-03-14 10:06:02.92065 +0100
+++ /var/tmp/diff_new_pack.WdzORF/_new  2017-03-14 10:06:02.92065 +0100
@@ -18,7 +18,7 @@
 
 %global pkg_name tasty
 Name:   ghc-%{pkg_name}
-Version:0.11.1
+Version:0.11.2
 Release:0
 Summary:Modern and extensible testing framework
 License:MIT

++ tasty-0.11.1.tar.gz -> tasty-0.11.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-0.11.1/CHANGELOG.md 
new/tasty-0.11.2/CHANGELOG.md
--- old/tasty-0.11.1/CHANGELOG.md   2017-01-18 12:51:23.0 +0100
+++ new/tasty-0.11.2/CHANGELOG.md   2017-02-13 10:44:23.0 +0100
@@ -1,6 +1,11 @@
 Changes
 ===
 
+Version 0.11.2
+--
+
+Add `composeReporters`, a function to run multiple reporter ingredients
+
 Version 0.11.1
 --
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-0.11.1/Test/Tasty/Ingredients.hs 
new/tasty-0.11.2/Test/Tasty/Ingredients.hs
--- old/tasty-0.11.1/Test/Tasty/Ingredients.hs  2015-04-30 20:38:39.0 
+0200
+++ new/tasty-0.11.2/Test/Tasty/Ingredients.hs  2017-02-13 10:41:53.0 
+0100
@@ -8,6 +8,7 @@
   , ingredientOptions
   , ingredientsOptions
   , suiteOptions
+  , composeReporters
   ) where
 
 import Control.Monad
@@ -18,6 +19,7 @@
 import Test.Tasty.Run
 import Test.Tasty.Options
 import Test.Tasty.Options.Core
+import Control.Concurrent.Async (concurrently)
 
 -- | 'Ingredient's make your test suite tasty.
 --
@@ -119,3 +121,21 @@
   coreOptions ++
   ingredientsOptions ins ++
   treeOptions tree
+
+-- | Compose two 'TestReporter' ingredients which are then executed
+-- in parallel. This can be useful if you want to have two reporters
+-- active at the same time, e.g., one which prints to the console and
+-- one which writes the test results to a file.
+--
+-- Be aware that it is not possible to use 'composeReporters' with a 
'TestManager',
+-- it only works for 'TestReporter' ingredients.
+composeReporters :: Ingredient -> Ingredient -> Ingredient
+composeReporters (TestReporter o1 f1) (TestReporter o2 f2) =
+  TestReporter (o1 ++ o2) $ \o t ->
+  case (f1 o t, f2 o t) of
+(g, Nothing) -> g
+(Nothing, g) -> g
+(Just g1, Just g2) -> Just $ \s -> do
+  (h1, h2) <- concurrently (g1 s) (g2 s)
+  return $ \x -> fmap (uncurry (&&)) $ concurrently (h1 x) (h2 x)
+composeReporters _ _ = error "Only TestReporters can be composed"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-0.11.1/tasty.cabal new/tasty-0.11.2/tasty.cabal
--- old/tasty-0.11.1/tasty.cabal2017-01-18 12:52:07.0 +0100
+++ new/tasty-0.11.2/tasty.cabal2017-02-13 10:44:26.0 +0100
@@ -2,7 +2,7 @@
 --  see http://haskell.org/cabal/users-guide/
 
 name:tasty
-version: 0.11.1
+version: 0.11.2
 synopsis:Modern and extensible testing framework
 description: Tasty is a modern testing framework for Haskell.
  It lets you combine your unit tests, golden




commit ghc-tasty for openSUSE:Factory

2017-02-10 Thread root
Hello community,

here is the log from the commit of package ghc-tasty for openSUSE:Factory 
checked in at 2017-02-11 01:42:14

Comparing /work/SRC/openSUSE:Factory/ghc-tasty (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-tasty.new (New)


Package is "ghc-tasty"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-tasty/ghc-tasty.changes  2016-10-22 
13:20:46.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-tasty.new/ghc-tasty.changes 2017-02-11 
01:42:15.815862896 +0100
@@ -1,0 +2,5 @@
+Thu Jan 26 16:22:16 UTC 2017 - psim...@suse.com
+
+- Update to version 0.11.1 with cabal2obs.
+
+---

Old:

  tasty-0.11.0.4.tar.gz

New:

  tasty-0.11.1.tar.gz



Other differences:
--
++ ghc-tasty.spec ++
--- /var/tmp/diff_new_pack.1zzogp/_old  2017-02-11 01:42:17.227663686 +0100
+++ /var/tmp/diff_new_pack.1zzogp/_new  2017-02-11 01:42:17.231663121 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-tasty
 #
-# 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,7 +18,7 @@
 
 %global pkg_name tasty
 Name:   ghc-%{pkg_name}
-Version:0.11.0.4
+Version:0.11.1
 Release:0
 Summary:Modern and extensible testing framework
 License:MIT

++ tasty-0.11.0.4.tar.gz -> tasty-0.11.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-0.11.0.4/CHANGELOG.md 
new/tasty-0.11.1/CHANGELOG.md
--- old/tasty-0.11.0.4/CHANGELOG.md 2016-08-23 15:39:28.0 +0200
+++ new/tasty-0.11.1/CHANGELOG.md   2017-01-18 12:51:23.0 +0100
@@ -1,6 +1,11 @@
 Changes
 ===
 
+Version 0.11.1
+--
+
+Introduce `mkOptionCLParser` and `mkFlagCLParser`
+
 Version 0.11.0.4
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/tasty-0.11.0.4/Test/Tasty/Ingredients/ConsoleReporter.hs 
new/tasty-0.11.1/Test/Tasty/Ingredients/ConsoleReporter.hs
--- old/tasty-0.11.0.4/Test/Tasty/Ingredients/ConsoleReporter.hs
2015-09-08 12:51:39.0 +0200
+++ new/tasty-0.11.1/Test/Tasty/Ingredients/ConsoleReporter.hs  2017-01-18 
12:40:24.0 +0100
@@ -334,7 +334,7 @@
   parseValue = fmap Quiet . safeRead
   optionName = return "quiet"
   optionHelp = return "Do not produce any output; indicate success only by the 
exit code"
-  optionCLParser = flagCLParser (Just 'q') (Quiet True)
+  optionCLParser = mkFlagCLParser (short 'q') (Quiet True)
 
 -- | Report only failed tests
 newtype HideSuccesses = HideSuccesses Bool
@@ -344,7 +344,7 @@
   parseValue = fmap HideSuccesses . safeRead
   optionName = return "hide-successes"
   optionHelp = return "Do not print tests that passed successfully"
-  optionCLParser = flagCLParser Nothing (HideSuccesses True)
+  optionCLParser = mkFlagCLParser mempty (HideSuccesses True)
 
 -- | When to use color on the output
 data UseColor
@@ -357,15 +357,6 @@
   parseValue = parseUseColor
   optionName = return "color"
   optionHelp = return "When to use colored output. Options are 'never', 
'always' and 'auto' (default: 'auto')"
-  optionCLParser =
-option parse
-  (  long name
-  <> help (untag (optionHelp :: Tagged UseColor String))
-  )
-where
-  name = untag (optionName :: Tagged UseColor String)
-  parse = str >>=
-maybe (readerError $ "Could not parse " ++ name) pure <$> parseValue
 
 -- | @useColor when isTerm@ decides if colors should be used,
 --   where @isTerm@ denotes where @stdout@ is a terminal device.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-0.11.0.4/Test/Tasty/Ingredients/ListTests.hs 
new/tasty-0.11.1/Test/Tasty/Ingredients/ListTests.hs
--- old/tasty-0.11.0.4/Test/Tasty/Ingredients/ListTests.hs  2015-01-19 
16:27:56.0 +0100
+++ new/tasty-0.11.1/Test/Tasty/Ingredients/ListTests.hs2017-01-18 
12:40:24.0 +0100
@@ -8,6 +8,8 @@
 
 import Data.Typeable
 import Data.Proxy
+import Data.Monoid
+import Options.Applicative
 
 import Test.Tasty.Core
 import Test.Tasty.Options
@@ -22,7 +24,7 @@
   parseValue = fmap ListTests . safeRead
   optionName = return "list-tests"
   optionHelp = return "Do not run the tests; just print their names"
-  optionCLParser = flagCLParser (Just 'l') (ListTests True)
+  optionCLParser = mkFlagCLParser (short 'l') (ListTests True)
 
 -- | Obtain the list of all tests in the suite
 testsNames :: OptionSet -> TestTree -> [TestName]
diff -urN 

commit ghc-tasty for openSUSE:Factory

2016-10-22 Thread h_root
Hello community,

here is the log from the commit of package ghc-tasty for openSUSE:Factory 
checked in at 2016-10-22 13:20:44

Comparing /work/SRC/openSUSE:Factory/ghc-tasty (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-tasty.new (New)


Package is "ghc-tasty"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-tasty/ghc-tasty.changes  2016-07-21 
08:15:25.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-tasty.new/ghc-tasty.changes 2016-10-22 
13:20:46.0 +0200
@@ -1,0 +2,10 @@
+Thu Sep 15 06:42:44 UTC 2016 - psim...@suse.com
+
+- Update to version 0.11.0.4 revision 0 with cabal2obs.
+
+---
+Wed Aug 17 18:24:09 UTC 2016 - psim...@suse.com
+
+- Update to version 0.11.0.3 revision 1 with cabal2obs.
+
+---

Old:

  tasty-0.11.0.3.tar.gz

New:

  tasty-0.11.0.4.tar.gz



Other differences:
--
++ ghc-tasty.spec ++
--- /var/tmp/diff_new_pack.jeJ8QB/_old  2016-10-22 13:20:47.0 +0200
+++ /var/tmp/diff_new_pack.jeJ8QB/_new  2016-10-22 13:20:47.0 +0200
@@ -18,15 +18,14 @@
 
 %global pkg_name tasty
 Name:   ghc-%{pkg_name}
-Version:0.11.0.3
+Version:0.11.0.4
 Release:0
 Summary:Modern and extensible testing framework
 License:MIT
-Group:  System/Libraries
+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-ansi-terminal-devel
 BuildRequires:  ghc-async-devel
 BuildRequires:  ghc-clock-devel
@@ -40,7 +39,6 @@
 BuildRequires:  ghc-tagged-devel
 BuildRequires:  ghc-unbounded-delays-devel
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-# End cabal-rpm deps
 
 %description
 Tasty is a modern testing framework for Haskell. It lets you combine your unit
@@ -61,15 +59,12 @@
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
-
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %post devel
 %ghc_pkg_recache
 

++ tasty-0.11.0.3.tar.gz -> tasty-0.11.0.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-0.11.0.3/CHANGELOG.md 
new/tasty-0.11.0.4/CHANGELOG.md
--- old/tasty-0.11.0.3/CHANGELOG.md 2016-04-29 08:31:43.0 +0200
+++ new/tasty-0.11.0.4/CHANGELOG.md 2016-08-23 15:39:28.0 +0200
@@ -1,6 +1,11 @@
 Changes
 ===
 
+Version 0.11.0.4
+
+
+Fix compatibility with `optparse-applicative-0.13`
+
 Version 0.11.0.3
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-0.11.0.3/Test/Tasty/CmdLine.hs 
new/tasty-0.11.0.4/Test/Tasty/CmdLine.hs
--- old/tasty-0.11.0.3/Test/Tasty/CmdLine.hs2015-01-19 16:27:56.0 
+0100
+++ new/tasty-0.11.0.4/Test/Tasty/CmdLine.hs2016-05-04 11:04:52.0 
+0200
@@ -32,7 +32,11 @@
 suiteOptionParser ins tree = optionParser $ suiteOptions ins tree
 
 -- | Parse the command line arguments and run the tests using the provided
--- ingredient list
+-- ingredient list.
+--
+-- When the tests finish, this function calls 'exitWith' with the exit code
+-- that indicates whether any tests have failed. See 'defaultMain' for
+-- details.
 defaultMainWithIngredients :: [Ingredient] -> TestTree -> IO ()
 defaultMainWithIngredients ins testTree = do
   cmdlineOpts <- execParser $
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-0.11.0.3/Test/Tasty/Options/Core.hs 
new/tasty-0.11.0.4/Test/Tasty/Options/Core.hs
--- old/tasty-0.11.0.3/Test/Tasty/Options/Core.hs   2015-04-25 
08:58:11.0 +0200
+++ new/tasty-0.11.0.4/Test/Tasty/Options/Core.hs   2016-08-23 
15:35:57.0 +0200
@@ -14,6 +14,7 @@
 import Data.Proxy
 import Data.Tagged
 import Data.Fixed
+import Data.Monoid
 import Options.Applicative
 import GHC.Conc
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-0.11.0.3/Test/Tasty/Patterns.hs 
new/tasty-0.11.0.4/Test/Tasty/Patterns.hs
--- old/tasty-0.11.0.3/Test/Tasty/Patterns.hs   2015-01-19 16:27:56.0 
+0100
+++ new/tasty-0.11.0.4/Test/Tasty/Patterns.hs   2016-08-23 15:30:33.0 
+0200
@@ -47,6 +47,7 @@
 import Data.Tagged
 
 import Options.Applicative
+import Data.Monoid
 
 data Token = SlashToken
| WildcardToken
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasty-0.11.0.3/Test/Tasty.hs 
new/tasty-0.11.0.4/Test/Tasty.hs
--- 

commit ghc-tasty for openSUSE:Factory

2016-07-21 Thread h_root
Hello community,

here is the log from the commit of package ghc-tasty for openSUSE:Factory 
checked in at 2016-07-21 08:15:23

Comparing /work/SRC/openSUSE:Factory/ghc-tasty (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-tasty.new (New)


Package is "ghc-tasty"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-tasty/ghc-tasty.changes  2016-05-03 
10:16:45.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-tasty.new/ghc-tasty.changes 2016-07-21 
08:15:25.0 +0200
@@ -1,0 +2,5 @@
+Sun Jul 10 16:59:03 UTC 2016 - psim...@suse.com
+
+- Update to version 0.11.0.3 revision 0 with cabal2obs.
+
+---



Other differences:
--
++ ghc-tasty.spec ++
--- /var/tmp/diff_new_pack.FczSDk/_old  2016-07-21 08:15:26.0 +0200
+++ /var/tmp/diff_new_pack.FczSDk/_new  2016-07-21 08:15:26.0 +0200
@@ -63,20 +63,18 @@
 
 
 %build
-%{ghc_lib_build}
+%ghc_lib_build
 
 
 %install
-%{ghc_lib_install}
+%ghc_lib_install
 
 
 %post devel
-%{ghc_pkg_recache}
-
+%ghc_pkg_recache
 
 %postun devel
-%{ghc_pkg_recache}
-
+%ghc_pkg_recache
 
 %files -f %{name}.files
 %defattr(-,root,root,-)
@@ -84,5 +82,6 @@
 
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
+%doc CHANGELOG.md
 
 %changelog