The QuickCheck library swapped the order of the arguments of the 'cover' function in version 2.12. Version 0.3.4 of the Diff library still uses the old argument order. Swapping the argument order makes Diff work with newer versions of QuickCheck. See for the upstream bug report. diff -ruN a/test/Test.hs b/test/Test.hs --- a/test/Test.hs 2016-04-23 01:21:45.000000000 -0400 +++ b/test/Test.hs 2019-11-01 19:13:04.590770903 -0400 @@ -134,7 +134,7 @@ prop_ppDiffR (DiffInput le ri) = let haskDiff=ppDiff $ getGroupedDiff le ri utilDiff= unsafePerformIO (runDiff (unlines le) (unlines ri)) - in cover (haskDiff == utilDiff) 90 "exact match" $ + in cover 90 (haskDiff == utilDiff) "exact match" $ classify (haskDiff == utilDiff) "exact match" (div ((length haskDiff)*100) (length utilDiff) < 110) -- less than 10% bigger where ble>
aboutsummaryrefslogtreecommitdiff
path: root/COPYING
uix/build/elm-build-system.scm?id=48c1a74b2461d42dc0df202d8353640b3b64ac62'>elm-build-system.scm
AgeCommit message (Expand)Author
AgeCommit message (Expand)Author
2022-05-22guix: Add elm-build-system....* gnu/packages/patches/elm-offline-package-registry.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/elm.scm (elm): Use it. * guix/build-system/elm.scm, guix/build/elm-build-system.scm, tests/elm.scm: New files. * Makefile.scm (MODULES, SCM_TESTS): Add them. * doc/guix.texi (Build Systems): Document 'elm-build-system'. * doc/contributing.texi (Elm Packages): New section. Document naming conventions and utilities. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Philip McGrath