[Pkg-haskell-commits] darcs: haskell-lens: Backport testsuite failure fix

Raúl Benencia rul at kalgan.cc
Tue May 13 15:27:59 UTC 2014


Tue May 13 13:48:32 UTC 2014  Ra[_<U+00FA>_]l Benencia <rul at kalgan.cc>
  * Backport testsuite failure fix

    M ./changelog +1
    A ./patches/backport-testsuite-failure-fix.patch
    M ./patches/series +1

Tue May 13 13:48:32 UTC 2014  Raúl Benencia <rul at kalgan.cc>
  * Backport testsuite failure fix
diff -rN -u old-haskell-lens/changelog new-haskell-lens/changelog
--- old-haskell-lens/changelog	2014-05-13 15:27:59.795605946 +0000
+++ new-haskell-lens/changelog	2014-05-13 15:27:59.811605945 +0000
@@ -2,6 +2,7 @@
 
   * Fix bogus patch
   * Disable Reflection on architectures without TH
+  * Backport testsuite failure fix
 
  -- Raúl Benencia <rul at kalgan.cc>  Sat, 19 Apr 2014 21:38:06 -0300
 
diff -rN -u old-haskell-lens/patches/backport-testsuite-failure-fix.patch new-haskell-lens/patches/backport-testsuite-failure-fix.patch
--- old-haskell-lens/patches/backport-testsuite-failure-fix.patch	1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-lens/patches/backport-testsuite-failure-fix.patch	2014-05-13 15:27:59.807605945 +0000
@@ -0,0 +1,15 @@
+Origin: https://github.com/ekmett/lens/commit/1a59eb2fc012549dc922596d48db88bbc611b561
+Description: Fix testsuite failure on some archs
+--- a/src/Numeric/Lens.hs
++++ b/src/Numeric/Lens.hs
+@@ -159,8 +159,8 @@
+ --
+ -- Note: This errors for n = 0
+ --
+--- >>> au (exponentiating 2._Unwrapping Sum) (foldMapOf each) (3,4)
+--- 5.0
++-- >>> au (exponentiating 2._Unwrapping Sum) (foldMapOf each) (3,4) == 5
++-- True
+ exponentiating :: (Floating a, Eq a) => a -> Iso' a a
+ exponentiating 0 = error "Numeric.Lens.exponentiating: exponent 0"
+ exponentiating n = iso (**n) (**recip n)
diff -rN -u old-haskell-lens/patches/series new-haskell-lens/patches/series
--- old-haskell-lens/patches/series	2014-05-13 15:27:59.795605946 +0000
+++ new-haskell-lens/patches/series	2014-05-13 15:27:59.807605945 +0000
@@ -4,3 +4,4 @@
 fudge-doctest-nonascii.diff
 no-transformers-compat.diff
 disable-reflection.patch
+backport-testsuite-failure-fix.patch




More information about the Pkg-haskell-commits mailing list