[arch-commits] Commit in haskell-quickcheck/trunk (2 files)

Felix Yan felixonmars at archlinux.org
Sun Oct 14 23:36:09 UTC 2018


    Date: Sunday, October 14, 2018 @ 23:36:09
  Author: felixonmars
Revision: 393935

upgpkg: haskell-quickcheck 2.11.3-5

rebuild with ghc 8.6.1

Added:
  haskell-quickcheck/trunk/0001-update-code-to-support-extensible-exceptions-no-long.patch
Modified:
  haskell-quickcheck/trunk/PKGBUILD

-----------------------------------------------------------------+
 0001-update-code-to-support-extensible-exceptions-no-long.patch |   50 ++++++++++
 PKGBUILD                                                        |    8 -
 2 files changed, 54 insertions(+), 4 deletions(-)

Added: 0001-update-code-to-support-extensible-exceptions-no-long.patch
===================================================================
--- 0001-update-code-to-support-extensible-exceptions-no-long.patch	                        (rev 0)
+++ 0001-update-code-to-support-extensible-exceptions-no-long.patch	2018-10-14 23:36:09 UTC (rev 393935)
@@ -0,0 +1,50 @@
+From 554b8dc1439b4dbb5bc9a853fc27efe7b1e111de Mon Sep 17 00:00:00 2001
+From: Thomas Dziedzic <gostrc at gmail.com>
+Date: Tue, 11 Sep 2012 03:59:50 -0700
+Subject: [PATCH] update code to support extensible exceptions no longer being
+ a part of ghc >= 7.6.1
+
+---
+ QuickCheck.cabal             | 6 +++++-
+ Test/QuickCheck/Exception.hs | 6 ++++++
+ 2 files changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/QuickCheck.cabal b/QuickCheck.cabal
+index 1a9126e..5afd6fb 100644
+--- a/QuickCheck.cabal
++++ b/QuickCheck.cabal
+@@ -60,9 +60,13 @@ library
+       Build-depends: ghc
+ 
+   -- We want to use extensible-exceptions even if linking against base-3.
+-  if impl(ghc >= 6.9)
++  if impl(ghc >= 6.9) && impl(ghc < 7.6)
+     Build-depends: extensible-exceptions
+ 
++  -- GHC >= 7.6.1 no longer provides extensible exceptions
++  if impl(ghc >= 7.6)
++    cpp-options: -DNEW_EXCEPTIONS
++
+   -- Modules that are always built.
+   Exposed-Modules:
+     Test.QuickCheck,
+diff --git a/Test/QuickCheck/Exception.hs b/Test/QuickCheck/Exception.hs
+index f895351..d463195 100644
+--- a/Test/QuickCheck/Exception.hs
++++ b/Test/QuickCheck/Exception.hs
+@@ -18,6 +18,12 @@ module Test.QuickCheck.Exception where
+ 
+ #if defined(OLD_EXCEPTIONS)
+ import Control.Exception(evaluate, try, Exception(..), throw)
++#elif defined(NEW_EXCEPTIONS)
++import Control.Exception(evaluate, try, SomeException(SomeException), ErrorCall(..), throw
++#if defined(GHC_INTERRUPT)
++  , AsyncException(UserInterrupt)
++#endif
++  )
+ #else
+ import Control.Exception.Extensible(evaluate, try, SomeException(SomeException), ErrorCall(..), throw
+ #if defined(GHC_INTERRUPT)
+-- 
+1.7.12
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-14 23:22:05 UTC (rev 393934)
+++ PKGBUILD	2018-10-14 23:36:09 UTC (rev 393935)
@@ -4,16 +4,16 @@
 
 _hkgname=QuickCheck
 pkgname=haskell-quickcheck
-pkgver=2.12.1
-pkgrel=2
+pkgver=2.11.3
+pkgrel=5
 pkgdesc='Automatic testing of Haskell programs'
 url='https://hackage.haskell.org/package/QuickCheck'
 license=('custom:BSD3')
 arch=('x86_64')
-depends=('ghc-libs' 'haskell-erf' 'haskell-random' 'haskell-tf-random')
+depends=('ghc-libs' 'haskell-random' 'haskell-tf-random')
 makedepends=('ghc')
 source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
-sha512sums=('280bc8e8b05e096629e5afdb6cd5c7f42690b8632af11ed513454ec7dbd8eff88518ae532b2055a30a57fe8bef3afa35cfe4ed981509d917b20a45c010b62629')
+sha512sums=('17b3c5803cbca980375a1837b4ba931f346be8a720fcc0e37ad2c46abc8ba2073c49635bc89739d34653376c3f7fe1bd39560092c005b8dbce0a7effac25d73d')
 
 build() {
   cd "$srcdir/$_hkgname-$pkgver"



More information about the arch-commits mailing list