commit ghc-distributive for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-distributive for openSUSE:Factory checked in at 2018-07-24 17:17:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-distributive (Old) and /work/SRC/openSUSE:Factory/.ghc-distributive.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "ghc-distributive" Tue Jul 24 17:17:53 2018 rev:6 rq:623759 version:0.6 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-distributive/ghc-distributive.changes 2018-05-30 12:25:28.146007528 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-distributive.new/ghc-distributive.changes 2018-07-24 17:18:00.914963351 +0200 @@ -1,0 +2,17 @@ +Wed Jul 18 14:26:21 UTC 2018 - psimons@suse.com + +- Cosmetic: replace tabs with blanks, strip trailing white space, + and update copyright headers with spec-cleaner. + +------------------------------------------------------------------- +Fri Jul 13 14:31:36 UTC 2018 - psimons@suse.com + +- Update distributive to version 0.6. + 0.6 [2018.07.02] + ---------------- + * Remove `fmapCollect`. (See + [here](https://github.com/ekmett/distributive/commit/1020655f15714514048d0dc842ffe4...) + for an explanation of why it was removed.) + * Avoid incurring some dependencies when using recent GHCs. + +------------------------------------------------------------------- @@ -48 +64,0 @@ - Old: ---- distributive-0.5.3.tar.gz distributive.cabal New: ---- distributive-0.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-distributive.spec ++++++ --- /var/tmp/diff_new_pack.vWtHIC/_old 2018-07-24 17:18:01.650964299 +0200 +++ /var/tmp/diff_new_pack.vWtHIC/_new 2018-07-24 17:18:01.650964299 +0200 @@ -19,20 +19,18 @@ %global pkg_name distributive %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.5.3 +Version: 0.6 Release: 0 Summary: Distributive functors -- Dual to Traversable License: BSD-2-Clause Group: Development/Libraries/Haskell 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/5.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-base-orphans-devel BuildRequires: ghc-cabal-doctest-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-tagged-devel -BuildRequires: ghc-transformers-compat-devel BuildRequires: ghc-transformers-devel %if %{with tests} BuildRequires: ghc-doctest-devel @@ -41,7 +39,7 @@ %endif %description -Distributive functors -- Dual to Traversable. +Distributive functors -- Dual to 'Traversable'. %package devel Summary: Haskell %{pkg_name} library development files @@ -56,7 +54,6 @@ %prep %setup -q -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++++++ distributive-0.5.3.tar.gz -> distributive-0.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distributive-0.5.3/.travis.yml new/distributive-0.6/.travis.yml --- old/distributive-0.5.3/.travis.yml 2017-07-29 02:37:52.000000000 +0200 +++ new/distributive-0.6/.travis.yml 2018-07-03 00:26:04.000000000 +0200 @@ -1,144 +1,159 @@ -# This file has been generated -- see https://github.com/hvr/multi-ghc-travis +# This Travis job script has been generated by a script via +# +# runghc make_travis_yml_2.hs '-o' '.travis.yml' '--ghc-head' '--irc-channel=irc.freenode.org#haskell-lens' '--no-no-tests-no-bench' '--no-unconstrained' 'cabal.project' +# +# For more information, see https://github.com/hvr/multi-ghc-travis +# language: c sudo: false +git: + submodules: false # whether to recursively clone submodules + +notifications: + irc: + channels: + - "irc.freenode.org#haskell-lens" + skip_join: true + template: + - "\x0313distributive\x03/\x0306%{branch}\x03 \x0314%{commit}\x03 %{build_url} %{message}" + cache: directories: - - $HOME/.cabsnap - $HOME/.cabal/packages - - $HOME/.stack + - $HOME/.cabal/store before_cache: - rm -fv $HOME/.cabal/packages/hackage.haskell.org/build-reports.log - - rm -fv $HOME/.cabal/packages/hackage.haskell.org/00-index.tar + # remove files that are regenerated by 'cabal update' + - rm -fv $HOME/.cabal/packages/hackage.haskell.org/00-index.* + - rm -fv $HOME/.cabal/packages/hackage.haskell.org/*.json + - rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.cache + - rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.tar + - rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.tar.idx + + - rm -rfv $HOME/.cabal/packages/head.hackage matrix: include: - - env: CABALVER=1.24 GHCVER=7.0.4 BUILD=cabal - compiler: ": #GHC 7.0.4" - addons: {apt: {packages: [cabal-install-1.24,ghc-7.0.4,alex-3.1.4,happy-1.19.5], sources: [hvr-ghc]}} - - - env: CABALVER=1.24 GHCVER=7.2.2 BUILD=cabal - compiler: ": #GHC 7.2.2" - addons: {apt: {packages: [cabal-install-1.24,ghc-7.2.2,alex-3.1.4,happy-1.19.5], sources: [hvr-ghc]}} - - - env: CABALVER=1.24 GHCVER=7.4.2 BUILD=cabal - compiler: ": #GHC 7.4.2" - addons: {apt: {packages: [cabal-install-1.24,ghc-7.4.2,alex-3.1.4,happy-1.19.5], sources: [hvr-ghc]}} - - - env: CABALVER=1.24 GHCVER=7.6.3 BUILD=cabal - compiler: ": #GHC 7.6.3" - addons: {apt: {packages: [cabal-install-1.24,ghc-7.6.3,alex-3.1.4,happy-1.19.5], sources: [hvr-ghc]}} - - - env: CABALVER=1.24 GHCVER=7.8.4 BUILD=cabal - compiler: ": #GHC 7.8.4" - addons: {apt: {packages: [cabal-install-1.24,ghc-7.8.4,alex-3.1.4,happy-1.19.5], sources: [hvr-ghc]}} - -# - env: BUILD=stack STACK_YAML=stack-7.8.yaml STACK_OPTIONS=--skip-ghc-check -# addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4,alex-3.1.4,happy-1.19.5], sources: [hvr-ghc]}} - -# - env: BUILD=stack STACK_YAML=stack-7.8.yaml -# os: osx - - - env: CABALVER=1.24 GHCVER=7.10.3 BUILD=cabal - compiler: ": #GHC 7.10.3" - addons: {apt: {packages: [cabal-install-1.24,ghc-7.10.3,alex-3.1.4,happy-1.19.5], sources: [hvr-ghc]}} - - - env: CABALVER=1.24 GHCVER=8.0.2 BUILD=cabal - compiler: ": #GHC 8.0.2" - addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2,alex-3.1.4,happy-1.19.5], sources: [hvr-ghc]}} - - - env: CABALVER=2.0 GHCVER=8.2.1 BUILD=cabal - compiler: ": #GHC 8.2.1" - addons: {apt: {packages: [cabal-install-2.0,ghc-8.2.1,alex-3.1.4,happy-1.19.5], sources: [hvr-ghc]}} - - - env: CABALVER=1.24 GHCVER=head BUILD=cabal CABALFLAGS=--allow-newer - compiler: ": #GHC head" - addons: {apt: {packages: [cabal-install-1.24,ghc-head,alex-3.1.4,happy-1.19.5], sources: [hvr-ghc]}} - -# - env: BUILD=stack STACK_OPTIONS=--skip-ghc-check -# addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.2,alex-3.1.4,happy-1.19.5], sources: [hvr-ghc]}} - -# - env: BUILD=stack -# os: osx + - compiler: "ghc-8.6.1" + env: GHCHEAD=true + addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.6.1], sources: [hvr-ghc]}} + - compiler: "ghc-8.4.3" + # env: TEST=--disable-tests BENCH=--disable-benchmarks + addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.2,ghc-8.4.3], sources: [hvr-ghc]}} + - compiler: "ghc-8.2.2" + # env: TEST=--disable-tests BENCH=--disable-benchmarks + addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.2,ghc-8.2.2], sources: [hvr-ghc]}} + - compiler: "ghc-8.0.2" + # env: TEST=--disable-tests BENCH=--disable-benchmarks + addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.2,ghc-8.0.2], sources: [hvr-ghc]}} + - compiler: "ghc-7.10.3" + # env: TEST=--disable-tests BENCH=--disable-benchmarks + addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.2,ghc-7.10.3], sources: [hvr-ghc]}} + - compiler: "ghc-7.8.4" + # env: TEST=--disable-tests BENCH=--disable-benchmarks + addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.2,ghc-7.8.4], sources: [hvr-ghc]}} + - compiler: "ghc-7.6.3" + # env: TEST=--disable-tests BENCH=--disable-benchmarks + addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.2,ghc-7.6.3], sources: [hvr-ghc]}} + - compiler: "ghc-7.4.2" + # env: TEST=--disable-tests BENCH=--disable-benchmarks + addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.2,ghc-7.4.2], sources: [hvr-ghc]}} + - compiler: "ghc-7.2.2" + # env: TEST=--disable-tests BENCH=--disable-benchmarks + addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.2,ghc-7.2.2], sources: [hvr-ghc]}} + - compiler: "ghc-7.0.4" + # env: TEST=--disable-tests BENCH=--disable-benchmarks + addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.2,ghc-7.0.4], sources: [hvr-ghc]}} + - compiler: "ghc-head" + env: GHCHEAD=true + addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-head], sources: [hvr-ghc]}} allow_failures: - - env: CABALVER=1.24 GHCVER=7.0.4 BUILD=cabal - - env: CABALVER=1.24 GHCVER=7.2.2 BUILD=cabal - - env: CABALVER=1.24 GHCVER=head BUILD=cabal CABALFLAGS=--allow-newer + - compiler: "ghc-head" + - compiler: "ghc-7.0.4" + - compiler: "ghc-7.2.2" + - compiler: "ghc-8.6.1" before_install: - - unset CC - - case "$BUILD" in - stack) - export STACK_VERSION=0.1.3.0; - export PATH=~/bin:$PATH; - mkdir -p ~/bin; - travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v$STACK_VERSION... | gunzip > ~/bin/stack; - chmod a+x ~/bin/stack; - scripts/travis_long stack --no-terminal setup;; - cabal) - export HAPPYVER=1.19.5 - export ALEXVER=3.1.4 - export PATH=~/.cabal/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:/opt/happy/$HAPPYVER/bin:/opt/alex/$ALEXVER/bin:$PATH;; - esac -install: - - case "$BUILD" in - stack) - scripts/travis_long stack --no-terminal $STACK_OPTIONS build --only-snapshot -j2;; - cabal) - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]" - cabal --version; - if [ -f $HOME/.cabal/packages/hackage.haskell.org/00-index.tar.gz ]; - then - zcat $HOME/.cabal/packages/hackage.haskell.org/00-index.tar.gz > - $HOME/.cabal/packages/hackage.haskell.org/00-index.tar; - fi; - travis_retry cabal update; - cabal install --only-dependencies --enable-tests --enable-benchmarks --dry -v $CABALFLAGS> installplan.txt; - sed -i -e '1,/^Resolving /d' installplan.txt; cat installplan.txt; - if diff -u installplan.txt $HOME/.cabsnap/installplan.txt; then - echo "cabal build-cache HIT"; - rm -rfv .ghc; - cp -a $HOME/.cabsnap/ghc $HOME/.ghc; - cp -a $HOME/.cabsnap/lib $HOME/.cabsnap/share $HOME/.cabsnap/bin $HOME/.cabal/; - else - echo "cabal build-cache MISS"; - rm -rf $HOME/.cabsnap; - mkdir -p $HOME/.ghc $HOME/.cabal/lib $HOME/.cabal/share $HOME/.cabal/bin; - cabal install --only-dependencies --enable-tests --enable-benchmarks $CABALFLAGS; - fi; - if [ ! -d $HOME/.cabsnap ]; then - echo "snapshotting package-db to build-cache"; - mkdir $HOME/.cabsnap; - cp -a $HOME/.ghc $HOME/.cabsnap/ghc; - cp -a $HOME/.cabal/lib $HOME/.cabal/share $HOME/.cabal/bin installplan.txt $HOME/.cabsnap/; - fi;; - esac + - HC=${CC} + - HCPKG=${HC/ghc/ghc-pkg} + - unset CC + - ROOTDIR=$(pwd) + - mkdir -p $HOME/.local/bin + - "PATH=/opt/ghc/bin:/opt/ghc-ppa-tools/bin:$HOME/local/bin:$PATH" + - HCNUMVER=$(( $(${HC} --numeric-version|sed -E 's/([0-9]+)\.([0-9]+)\.([0-9]+).*/\1 * 10000 + \2 * 100 + \3/') )) + - echo $HCNUMVER -# snapshot package-db on cache miss +install: + - cabal --version + - echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]" + - BENCH=${BENCH---enable-benchmarks} + - TEST=${TEST---enable-tests} + - HADDOCK=${HADDOCK-true} + - UNCONSTRAINED=${UNCONSTRAINED-true} + - NOINSTALLEDCONSTRAINTS=${NOINSTALLEDCONSTRAINTS-false} + - GHCHEAD=${GHCHEAD-false} + - travis_retry cabal update -v + - "sed -i.bak 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config" + - rm -fv cabal.project cabal.project.local + # Overlay Hackage Package Index for GHC HEAD: https://github.com/hvr/head.hackage + - | + if $GHCHEAD; then + sed -i 's/-- allow-newer: .*/allow-newer: *:base/' ${HOME}/.cabal/config + for pkg in $($HCPKG list --simple-output); do pkg=$(echo $pkg | sed 's/-[^-]*$//'); sed -i "s/allow-newer: /allow-newer: *:$pkg, /" ${HOME}/.cabal/config; done + + echo 'repository head.hackage' >> ${HOME}/.cabal/config + echo ' url: http://head.hackage.haskell.org/' >> ${HOME}/.cabal/config + echo ' secure: True' >> ${HOME}/.cabal/config + echo ' root-keys: 07c59cb65787dedfaef5bd5f987ceb5f7e5ebf88b904bbd4c5cbdeb2ff71b740' >> ${HOME}/.cabal/config + echo ' 2e8555dde16ebd8df076f1a8ef13b8f14c66bad8eafefd7d9e37d0ed711821fb' >> ${HOME}/.cabal/config + echo ' 8f79fd2389ab2967354407ec852cbe73f2e8635793ac446d09461ffb99527f6e' >> ${HOME}/.cabal/config + echo ' key-threshold: 3' >> ${HOME}/.cabal.config + + grep -Ev -- '^\s*--' ${HOME}/.cabal/config | grep -Ev '^\s*$' + + cabal new-update head.hackage -v + fi + - grep -Ev -- '^\s*--' ${HOME}/.cabal/config | grep -Ev '^\s*$' + - "printf 'packages: \".\"\\n' > cabal.project" + - touch cabal.project.local + - "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi" + - cat cabal.project || true + - cat cabal.project.local || true + - if [ -f "./configure.ac" ]; then + (cd "." && autoreconf -i); + fi + - rm -f cabal.project.freeze + - cabal new-build -w ${HC} ${TEST} ${BENCH} --project-file="cabal.project" --dep -j2 all + - rm -rf .ghc.environment.* "."/dist + - DISTDIR=$(mktemp -d /tmp/dist-test.XXXX) # Here starts the actual work to be performed for the package under test; # any command which exits with a non-zero exit code causes the build to fail. script: - - case "$BUILD" in - stack) - scripts/travis_long stack --no-terminal $STACK_OPTIONS build -j2;; - cabal) - cabal configure --enable-tests -v2 $CABALFLAGS; - cabal build; - cabal test --show-details=always; - cabal bench || true; - cabal sdist || true; - SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz; - if [ -f $SRC_TGZ ]; then (cd dist && cabal install --force-reinstalls "$SRC_TGZ"); fi; - esac + # test that source-distributions can be generated + - (cd "." && cabal sdist) + - mv "."/dist/distributive-*.tar.gz ${DISTDIR}/ + - cd ${DISTDIR} || false + - find . -maxdepth 1 -name '*.tar.gz' -exec tar -xvf '{}' \; + - "printf 'packages: distributive-*/*.cabal\\n' > cabal.project" + - touch cabal.project.local + - "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi" + - cat cabal.project || true + - cat cabal.project.local || true + + # build & run tests, build benchmarks + - cabal new-build -w ${HC} ${TEST} ${BENCH} all + - if [ "x$TEST" = "x--enable-tests" ]; then cabal new-test -w ${HC} ${TEST} ${BENCH} all; fi + + # cabal check + - (cd distributive-* && cabal check) + + # haddock + - rm -rf ./dist-newstyle + - if $HADDOCK; then cabal new-haddock -w ${HC} ${TEST} ${BENCH} all; else echo "Skipping haddock generation";fi -notifications: - irc: - channels: - - "irc.freenode.org#haskell-lens" - skip_join: true - template: - - "\x0313distributive\x0f/\x0306%{branch}\x0f \x0314%{commit}\x0f %{message} \x0302\x1f%{build_url}\x0f" +# REGENDATA ["-o",".travis.yml","--ghc-head","--irc-channel=irc.freenode.org#haskell-lens","--no-no-tests-no-bench","--no-unconstrained","cabal.project"] # EOF diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distributive-0.5.3/CHANGELOG.markdown new/distributive-0.6/CHANGELOG.markdown --- old/distributive-0.5.3/CHANGELOG.markdown 2017-07-29 02:37:52.000000000 +0200 +++ new/distributive-0.6/CHANGELOG.markdown 2018-07-03 00:26:04.000000000 +0200 @@ -1,3 +1,10 @@ +0.6 [2018.07.02] +---------------- +* Remove `fmapCollect`. (See + [here](https://github.com/ekmett/distributive/commit/1020655f15714514048d0dc842ffe4...) + for an explanation of why it was removed.) +* Avoid incurring some dependencies when using recent GHCs. + 0.5.3 ----- * Support `doctest-0.12` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distributive-0.5.3/distributive.cabal new/distributive-0.6/distributive.cabal --- old/distributive-0.5.3/distributive.cabal 2017-07-29 02:37:52.000000000 +0200 +++ new/distributive-0.6/distributive.cabal 2018-07-03 00:26:04.000000000 +0200 @@ -1,6 +1,6 @@ name: distributive category: Data Structures -version: 0.5.3 +version: 0.6 license: BSD3 cabal-version: >= 1.8 license-file: LICENSE @@ -11,8 +11,18 @@ bug-reports: http://github.com/ekmett/distributive/issues copyright: Copyright (C) 2011-2016 Edward A. Kmett synopsis: Distributive functors -- Dual to Traversable -description: Distributive functors -- Dual to Traversable +description: Distributive functors -- Dual to @Traversable@ build-type: Custom +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.2 + , GHC == 8.2.2 + , GHC == 8.4.3 + , GHC == 8.6.1 extra-source-files: .travis.yml .vim.custom @@ -51,9 +61,11 @@ library build-depends: base >= 4 && < 5, - base-orphans >= 0.5 && < 1, - transformers >= 0.2 && < 0.6, - transformers-compat >= 0.3 && < 1 + base-orphans >= 0.5.2 && < 1, + transformers >= 0.2 && < 0.6 + + if !impl(ghc >= 7.8) && !impl(ghcjs) + build-depends: transformers-compat >= 0.3 && < 1 hs-source-dirs: src exposed-modules: @@ -70,7 +82,7 @@ if impl(ghc < 8.0) if flag(semigroups) - build-depends: semigroups >= 0.11 && < 1 + build-depends: semigroups >= 0.13 && < 1 if impl(ghc < 7.8) hs-source-dirs: src-compat @@ -85,13 +97,15 @@ build-depends: base >= 4, distributive, - doctest >= 0.11.1 && <0.13 + doctest >= 0.11.1 && <0.17 ghc-options: -Wall -threaded hs-source-dirs: tests test-suite spec type: exitcode-stdio-1.0 hs-source-dirs: tests + build-tool-depends: + hspec-discover:hspec-discover build-depends: base >= 4 && < 5, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distributive-0.5.3/src/Data/Distributive.hs new/distributive-0.6/src/Data/Distributive.hs --- old/distributive-0.5.3/src/Data/Distributive.hs 2017-07-29 02:37:52.000000000 +0200 +++ new/distributive-0.6/src/Data/Distributive.hs 2018-07-03 00:26:04.000000000 +0200 @@ -21,7 +21,6 @@ ( Distributive(..) , cotraverse , comapM - , fmapCollect ) where import Control.Applicative @@ -241,11 +240,6 @@ imagP (_ :+ i) = i #endif --- | 'fmapCollect' is a viable default definition for 'fmap' given --- a 'Distributive' instance defined in terms of 'collect'. -fmapCollect :: forall f a b . Distributive f => (a -> b) -> f a -> f b -fmapCollect = coerce (collect :: (a -> Identity b) -> f a -> Identity (f b)) - #if __GLASGOW_HASKELL__ >= 702 instance Distributive U1 where distribute _ = U1
participants (1)
-
root