Hello community,
here is the log from the commit of package ghc-semigroups for
openSUSE:Leap:15.2 checked in at 2020-02-19 18:41:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/ghc-semigroups (Old)
and /work/SRC/openSUSE:Leap:15.2/.ghc-semigroups.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-semigroups"
Wed Feb 19 18:41:07 2020 rev:13 rq:771445 version:0.19.1
Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/ghc-semigroups/ghc-semigroups.changes
2020-01-15 15:02:36.445815807 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.ghc-semigroups.new.26092/ghc-semigroups.changes
2020-02-19 18:41:08.470185168 +0100
@@ -1,0 +2,36 @@
+Fri Nov 8 16:14:42 UTC 2019 - Peter Simons <[email protected]>
+
+- Drop obsolete group attributes.
+
+-------------------------------------------------------------------
+Wed Aug 28 02:02:39 UTC 2019 - [email protected]
+
+- Update semigroups to version 0.19.1.
+ 0.19.1 [2019.08.27]
+ -------------------
+ * Add `GenericSemigroupMonoid`, an adapter newtype suitable for
`DerivingVia`,
+ to `Data.Semigroup.Generic`.
+ * Work around a bug related to the backported `Generic(1)` instances in this
+ package (that could only be triggered on GHC 7.2 or 7.4) in which the
+ hand-written `Datatype`, `Constructor`, and `Selector` instances for
internal
+ data types could overlap with GHC-generated instances.
+
+-------------------------------------------------------------------
+Sat May 11 02:00:51 UTC 2019 - [email protected]
+
+- Update semigroups to version 0.19.
+ 0.19 [2019.05.10]
+ -----------------
+ * The `(<>)` method of the backported `Semigroup` class no longer has a
default
+ implementation in terms of `mappend`. This mirrors the `Data.Semigroup` API
+ that was introduced in `base-4.9`. This is a breaking change for any
+ `Semigroup` instances that are defined in tandem with versions of `base`
+ older than 4.9.
+ * Make the backported `Hashable Arg` instance reflect its respective variants
+ in the `hashable` package. In `hashable-1.3`, the `Hashable Arg` instance
+ only hashes the first argument, lest equal values have different hashes.
+ * Backport the `Lift (NonEmpty a)` instance introduced in
+ `template-haskell-2.15.0.0`.
+ * `Data.List.NonEmpty` is now unconditionally `Trustworthy`.
+
+-------------------------------------------------------------------
Old:
----
semigroups-0.18.5.tar.gz
New:
----
semigroups-0.19.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-semigroups.spec ++++++
--- /var/tmp/diff_new_pack.P7S2nQ/_old 2020-02-19 18:41:08.778185546 +0100
+++ /var/tmp/diff_new_pack.P7S2nQ/_new 2020-02-19 18:41:08.782185551 +0100
@@ -1,7 +1,7 @@
#
# spec file for package ghc-semigroups
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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,11 +18,10 @@
%global pkg_name semigroups
Name: ghc-%{pkg_name}
-Version: 0.18.5
+Version: 0.19.1
Release: 0
Summary: Anything that associates
License: BSD-3-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
BuildRequires: ghc-Cabal-devel
@@ -37,7 +36,6 @@
%package devel
Summary: Haskell %{pkg_name} library development files
-Group: Development/Libraries/Haskell
Requires: %{name} = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
++++++ semigroups-0.18.5.tar.gz -> semigroups-0.19.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/semigroups-0.18.5/.travis.yml
new/semigroups-0.19.1/.travis.yml
--- old/semigroups-0.18.5/.travis.yml 2018-07-03 00:09:07.000000000 +0200
+++ new/semigroups-0.19.1/.travis.yml 2001-09-09 03:46:40.000000000 +0200
@@ -1,158 +1,196 @@
# 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'
+# haskell-ci '-o' '.travis.yml' '--config=cabal.haskell-ci' 'cabal.project'
#
-# For more information, see https://github.com/hvr/multi-ghc-travis
+# For more information, see https://github.com/haskell-CI/haskell-ci
+#
+# version: 0.3.20190429
#
language: c
-sudo: false
-
+dist: xenial
git:
- submodules: false # whether to recursively clone submodules
-
+ # whether to recursively clone submodules
+ submodules: false
notifications:
irc:
channels:
- - "irc.freenode.org#haskell-lens"
+ - irc.freenode.org#haskell-lens
skip_join: true
template:
- - "\x0313semigroups\x03/\x0306%{branch}\x03 \x0314%{commit}\x03
%{build_url} %{message}"
-
+ - "\"\\x0313semigroups\\x03/\\x0306%{branch}\\x03 \\x0314%{commit}\\x03
%{build_url} %{message}\""
cache:
directories:
- $HOME/.cabal/packages
- $HOME/.cabal/store
-
before_cache:
- - rm -fv $HOME/.cabal/packages/hackage.haskell.org/build-reports.log
+ - rm -fv $CABALHOME/packages/hackage.haskell.org/build-reports.log
# 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
-
+ - rm -fv $CABALHOME/packages/hackage.haskell.org/00-index.*
+ - rm -fv $CABALHOME/packages/hackage.haskell.org/*.json
+ - rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.cache
+ - rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar
+ - rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar.idx
+ - rm -rfv $CABALHOME/packages/head.hackage
matrix:
include:
- - compiler: "ghc-8.6.1"
+ - compiler: ghc-8.8.1
+ addons:
{"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.8.1","cabal-install-3.0"]}}
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"
+ - compiler: ghc-8.6.5
+ addons:
{"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.5","cabal-install-2.4"]}}
+ - compiler: ghc-8.4.4
+ addons:
{"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.4.4","cabal-install-2.4"]}}
+ - compiler: ghc-8.2.2
+ addons:
{"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.2.2","cabal-install-2.4"]}}
+ - compiler: ghc-8.0.2
+ addons:
{"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.0.2","cabal-install-2.4"]}}
+ - compiler: ghc-7.10.3
+ addons:
{"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.10.3","cabal-install-2.4"]}}
+ - compiler: ghc-7.8.4
+ addons:
{"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.8.4","cabal-install-2.4"]}}
+ - compiler: ghc-7.6.3
+ addons:
{"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.6.3","cabal-install-2.4"]}}
+ - compiler: ghc-7.4.2
+ addons:
{"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.4.2","cabal-install-2.4"]}}
+ - compiler: ghc-7.2.2
+ addons:
{"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.2.2","cabal-install-2.4"]}}
+ - compiler: ghc-7.0.4
+ addons:
{"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.0.4","cabal-install-2.4"]}}
+ - compiler: ghc-head
+ addons:
{"apt":{"sources":["hvr-ghc"],"packages":["ghc-head","cabal-install-head"]}}
env: GHCHEAD=true
- addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-head],
sources: [hvr-ghc]}}
-
allow_failures:
- - compiler: "ghc-head"
- - compiler: "ghc-7.0.4"
- - compiler: "ghc-7.2.2"
- - compiler: "ghc-8.6.1"
-
+ - compiler: ghc-head
+ - compiler: ghc-8.8.1
before_install:
- - HC=${CC}
- - HCPKG=${HC/ghc/ghc-pkg}
+ - HC=$(echo "/opt/$CC/bin/ghc" | sed 's/-/\//')
+ - HCPKG="$HC-pkg"
- unset CC
- - ROOTDIR=$(pwd)
- - mkdir -p $HOME/.local/bin
- - "PATH=/opt/ghc/bin:/opt/ghc-ppa-tools/bin:$HOME/local/bin:$PATH"
+ - CABAL=/opt/ghc/bin/cabal
+ - CABALHOME=$HOME/.cabal
+ - export PATH="$CABALHOME/bin:$PATH"
+ - TOP=$(pwd)
- HCNUMVER=$(( $(${HC} --numeric-version|sed -E
's/([0-9]+)\.([0-9]+)\.([0-9]+).*/\1 * 10000 + \2 * 100 + \3/') ))
- echo $HCNUMVER
-
+ - CABAL="$CABAL -vnormal+nowrap+markoutput"
+ - set -o pipefail
+ - |
+ echo 'function blue(s) { printf "\033[0;34m" s "\033[0m " }' >>
.colorful.awk
+ echo 'BEGIN { state = "output"; }' >>
.colorful.awk
+ echo '/^-----BEGIN CABAL OUTPUT-----$/ { state = "cabal" }' >>
.colorful.awk
+ echo '/^-----END CABAL OUTPUT-----$/ { state = "output" }' >>
.colorful.awk
+ echo '!/^(-----BEGIN CABAL OUTPUT-----|-----END CABAL OUTPUT-----)/ {' >>
.colorful.awk
+ echo ' if (state == "cabal") {' >>
.colorful.awk
+ echo ' print blue($0)' >>
.colorful.awk
+ echo ' } else {' >>
.colorful.awk
+ echo ' print $0' >>
.colorful.awk
+ echo ' }' >>
.colorful.awk
+ echo '}' >>
.colorful.awk
+ - cat .colorful.awk
+ - |
+ color_cabal_output () {
+ awk -f $TOP/.colorful.awk
+ }
+ - echo text | color_cabal_output
install:
- - cabal --version
+ - ${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}
+ - TEST=--enable-tests
+ - BENCH=--enable-benchmarks
- 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
+ - rm -f $CABALHOME/config
+ - |
+ echo "verbose: normal +nowrap +markoutput" >> $CABALHOME/config
+ echo "remote-build-reporting: anonymous" >> $CABALHOME/config
+ echo "remote-repo-cache: $CABALHOME/packages" >> $CABALHOME/config
+ echo "logs-dir: $CABALHOME/logs" >> $CABALHOME/config
+ echo "world-file: $CABALHOME/world" >> $CABALHOME/config
+ echo "extra-prog-path: $CABALHOME/bin" >> $CABALHOME/config
+ echo "symlink-bindir: $CABALHOME/bin" >> $CABALHOME/config
+ echo "installdir: $CABALHOME/bin" >> $CABALHOME/config
+ echo "build-summary: $CABALHOME/logs/build.log" >> $CABALHOME/config
+ echo "store-dir: $CABALHOME/store" >> $CABALHOME/config
+ echo "install-dirs user" >> $CABALHOME/config
+ echo " prefix: $CABALHOME" >> $CABALHOME/config
+ echo "repository hackage.haskell.org" >> $CABALHOME/config
+ echo " url: http://hackage.haskell.org/" >> $CABALHOME/config
- |
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
+ echo "allow-newer: $($HCPKG list --simple-output | sed -E
's/([a-zA-Z-]+)-[0-9.]+/*:\1/g')" >> $CABALHOME/config
+
+ echo "repository head.hackage"
>> $CABALHOME/config
+ echo " url: http://head.hackage.haskell.org/"
>> $CABALHOME/config
+ echo " secure: True"
>> $CABALHOME/config
+ echo " root-keys:
07c59cb65787dedfaef5bd5f987ceb5f7e5ebf88b904bbd4c5cbdeb2ff71b740" >>
$CABALHOME/config
+ echo "
2e8555dde16ebd8df076f1a8ef13b8f14c66bad8eafefd7d9e37d0ed711821fb" >>
$CABALHOME/config
+ echo "
8f79fd2389ab2967354407ec852cbe73f2e8635793ac446d09461ffb99527f6e" >>
$CABALHOME/config
+ echo " key-threshold: 3"
>> $CABALHOME/config
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 $CABALHOME/config
+ - rm -fv cabal.project cabal.project.local cabal.project.freeze
+ - travis_retry ${CABAL} v2-update -v
+ # Generate cabal.project
+ - rm -rf cabal.project cabal.project.local cabal.project.freeze
+ - touch cabal.project
+ - |
+ echo 'packages: "."' >> cabal.project
+ - |
+ echo "write-ghc-environment-files: always" >> cabal.project
+ - "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed
's/-[^-]*$//' | (grep -vE -- '^(semigroups)$' || true) | sed 's/^/constraints:
/' | sed 's/$/ installed/' >> cabal.project.local; done"
- 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.
+ - if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
+ - ${CABAL} v2-freeze -w ${HC} ${TEST} ${BENCH} | color_cabal_output
+ - "cat cabal.project.freeze | sed -E 's/^(constraints: *| *)//' | sed
's/any.//'"
+ - rm cabal.project.freeze
+ - ${CABAL} v2-build -w ${HC} ${TEST} ${BENCH} --dep -j2 all |
color_cabal_output
script:
- # test that source-distributions can be generated
- - (cd "." && cabal sdist)
- - mv "."/dist/semigroups-*.tar.gz ${DISTDIR}/
+ - DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
+ # Packaging...
+ - ${CABAL} v2-sdist all | color_cabal_output
+ # Unpacking...
+ - mv dist-newstyle/sdist/*.tar.gz ${DISTDIR}/
- cd ${DISTDIR} || false
- find . -maxdepth 1 -name '*.tar.gz' -exec tar -xvf '{}' \;
- - "printf 'packages: semigroups-*/*.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"
+ # Generate cabal.project
+ - rm -rf cabal.project cabal.project.local cabal.project.freeze
+ - touch cabal.project
+ - |
+ echo 'packages: "semigroups-*/*.cabal"' >> cabal.project
+ - |
+ echo "write-ghc-environment-files: always" >> cabal.project
+ - "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed
's/-[^-]*$//' | (grep -vE -- '^(semigroups)$' || true) | sed 's/^/constraints:
/' | sed 's/$/ installed/' >> cabal.project.local; done"
- cat cabal.project || true
- cat cabal.project.local || true
-
+ # Building with tests and benchmarks...
# build & run tests, build benchmarks
- - cabal new-build -w ${HC} ${TEST} ${BENCH} all
-
- # cabal check
- - (cd semigroups-* && cabal check)
-
- # haddock
- - rm -rf ./dist-newstyle
- - if $HADDOCK; then cabal new-haddock -w ${HC} ${TEST} ${BENCH} all; else
echo "Skipping haddock generation";fi
+ - ${CABAL} v2-build -w ${HC} ${TEST} ${BENCH} all | color_cabal_output
+ # cabal check...
+ - (cd semigroups-* && ${CABAL} -vnormal check)
+ # haddock...
+ - ${CABAL} v2-haddock -w ${HC} ${TEST} ${BENCH} all | color_cabal_output
+ # Constraint sets
+ - rm -rf cabal.project.local
+ # Constraint set no-binary
+ - ${CABAL} v2-build -w ${HC} --disable-tests --disable-benchmarks
--constraint='semigroups -binary' all | color_cabal_output
+ # Constraint set no-bytestring
+ - ${CABAL} v2-build -w ${HC} --disable-tests --disable-benchmarks
--constraint='semigroups -bytestring' all | color_cabal_output
+ # Constraint set no-containers
+ - ${CABAL} v2-build -w ${HC} --disable-tests --disable-benchmarks
--constraint='semigroups -containers' all | color_cabal_output
+ # Constraint set no-deepseq
+ - ${CABAL} v2-build -w ${HC} --disable-tests --disable-benchmarks
--constraint='semigroups -deepseq' all | color_cabal_output
+ # Constraint set no-tagged
+ - ${CABAL} v2-build -w ${HC} --disable-tests --disable-benchmarks
--constraint='semigroups -tagged' all | color_cabal_output
+ # Constraint set no-text
+ - ${CABAL} v2-build -w ${HC} --disable-tests --disable-benchmarks
--constraint='semigroups -text' all | color_cabal_output
+ # Constraint set no-hashable
+ - ${CABAL} v2-build -w ${HC} --disable-tests --disable-benchmarks
--constraint='semigroups -hashable' all | color_cabal_output
+ # Constraint set no-unordered-containers
+ - ${CABAL} v2-build -w ${HC} --disable-tests --disable-benchmarks
--constraint='semigroups -hashable' --constraint='semigroups
-unordered-containers' all | color_cabal_output
+ # Constraint set no-transformers
+ - ${CABAL} v2-build -w ${HC} --disable-tests --disable-benchmarks
--constraint='semigroups -transformers' all | color_cabal_output
+ # Constraint set no-template-haskell
+ - ${CABAL} v2-build -w ${HC} --disable-tests --disable-benchmarks
--constraint='semigroups -template-haskell' all | color_cabal_output
-# REGENDATA
["-o",".travis.yml","--ghc-head","--irc-channel=irc.freenode.org#haskell-lens","--no-no-tests-no-bench","--no-unconstrained","cabal.project"]
+# REGENDATA ["-o",".travis.yml","--config=cabal.haskell-ci","cabal.project"]
# EOF
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/semigroups-0.18.5/CHANGELOG.markdown
new/semigroups-0.19.1/CHANGELOG.markdown
--- old/semigroups-0.18.5/CHANGELOG.markdown 2018-07-03 00:09:07.000000000
+0200
+++ new/semigroups-0.19.1/CHANGELOG.markdown 2001-09-09 03:46:40.000000000
+0200
@@ -1,3 +1,26 @@
+0.19.1 [2019.08.27]
+-------------------
+* Add `GenericSemigroupMonoid`, an adapter newtype suitable for `DerivingVia`,
+ to `Data.Semigroup.Generic`.
+* Work around a bug related to the backported `Generic(1)` instances in this
+ package (that could only be triggered on GHC 7.2 or 7.4) in which the
+ hand-written `Datatype`, `Constructor`, and `Selector` instances for internal
+ data types could overlap with GHC-generated instances.
+
+0.19 [2019.05.10]
+-----------------
+* The `(<>)` method of the backported `Semigroup` class no longer has a default
+ implementation in terms of `mappend`. This mirrors the `Data.Semigroup` API
+ that was introduced in `base-4.9`. This is a breaking change for any
+ `Semigroup` instances that are defined in tandem with versions of `base`
+ older than 4.9.
+* Make the backported `Hashable Arg` instance reflect its respective variants
+ in the `hashable` package. In `hashable-1.3`, the `Hashable Arg` instance
+ only hashes the first argument, lest equal values have different hashes.
+* Backport the `Lift (NonEmpty a)` instance introduced in
+ `template-haskell-2.15.0.0`.
+* `Data.List.NonEmpty` is now unconditionally `Trustworthy`.
+
0.18.5 [2018.07.02]
-------------------
* Use a more efficient `sconcat` for the `Semigroup` instances for strict and
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/semigroups-0.18.5/semigroups.cabal
new/semigroups-0.19.1/semigroups.cabal
--- old/semigroups-0.18.5/semigroups.cabal 2018-07-03 00:09:07.000000000
+0200
+++ new/semigroups-0.19.1/semigroups.cabal 2001-09-09 03:46:40.000000000
+0200
@@ -1,6 +1,6 @@
name: semigroups
category: Algebra, Data, Data Structures, Math
-version: 0.18.5
+version: 0.19.1
license: BSD3
cabal-version: >= 1.10
license-file: LICENSE
@@ -23,8 +23,9 @@
, GHC == 7.10.3
, GHC == 8.0.2
, GHC == 8.2.2
- , GHC == 8.4.3
- , GHC == 8.6.1
+ , GHC == 8.4.4
+ , GHC == 8.6.5
+ , GHC == 8.8.1
source-repository head
type: git
@@ -90,6 +91,14 @@
default: True
manual: True
+flag template-haskell
+ description:
+ You can disable the use of the `template-haskell` package using
`-f-template-haskell`.
+ .
+ Disabling this is an unsupported configuration, but it may be useful for
accelerating builds in sandboxes for expert users.
+ default: True
+ manual: True
+
flag text
description:
You can disable the use of the `text` package using `-f-text`.
@@ -163,7 +172,7 @@
build-depends: text >= 0.10 && < 2
if flag(hashable)
- build-depends: hashable >= 1.1 && < 1.3
+ build-depends: hashable >= 1.2.5.0 && < 1.4
if flag(hashable) && flag(unordered-containers)
build-depends: unordered-containers >= 0.2 && < 0.3
@@ -171,3 +180,7 @@
if flag(transformers)
build-depends: transformers >= 0.2 && < 0.6
, transformers-compat >= 0.5 && < 1
+
+ if flag(template-haskell)
+ build-depends: template-haskell >=2.5.0.0 && <2.11
+ other-modules: Paths_semigroups
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/semigroups-0.18.5/src/Data/Semigroup/Generic.hs
new/semigroups-0.19.1/src/Data/Semigroup/Generic.hs
--- old/semigroups-0.18.5/src/Data/Semigroup/Generic.hs 2018-07-03
00:09:07.000000000 +0200
+++ new/semigroups-0.19.1/src/Data/Semigroup/Generic.hs 2001-09-09
03:46:40.000000000 +0200
@@ -1,6 +1,7 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE FlexibleContexts #-}
+{-# LANGUAGE UndecidableInstances #-}
#if __GLASGOW_HASKELL__ >= 704
{-# LANGUAGE Safe #-}
#else
@@ -21,14 +22,21 @@
--
----------------------------------------------------------------------------
module Data.Semigroup.Generic
- ( GSemigroup
- , gmappend
- , GMonoid
- , gmempty
+ ( -- * Generic method implementations
+ gmappend, gmempty
+
+ -- * Adapter newtype
+ , GenericSemigroupMonoid(..)
+
+ -- * Internal classes
+ , GSemigroup, GMonoid
) where
+#if !(MIN_VERSION_base(4,8,0))
+import Data.Monoid (Monoid(..))
+#endif
#if !(MIN_VERSION_base(4,11,0))
-import Data.Semigroup
+import Data.Semigroup (Semigroup(..))
#endif
import GHC.Generics
@@ -87,3 +95,26 @@
instance (GMonoid f, GMonoid g) => GMonoid (f :*: g) where
gmempty' = gmempty' :*: gmempty'
+
+-- | An adapter newtype, suitable for @DerivingVia@. Its 'Semigroup' and
+-- 'Monoid' instances leverage the 'Generic'-based defaults defined by
+-- 'gmappend' and 'gmempty'. Here is an example of how to use it:
+--
+-- @
+-- {-# LANGUAGE DerivingVia #-}
+-- import "Data.Semigroup.Generic"
+--
+-- data Pair a = MkPair a a
+-- deriving ('Semigroup', 'Monoid') via ('GenericSemigroupMonoid' (Pair a))
+-- @
+newtype GenericSemigroupMonoid a =
+ GenericSemigroupMonoid { getGenericSemigroupMonoid :: a }
+
+instance (Generic a, GSemigroup (Rep a)) => Semigroup (GenericSemigroupMonoid
a) where
+ GenericSemigroupMonoid x <> GenericSemigroupMonoid y =
+ GenericSemigroupMonoid (gmappend x y)
+instance (Generic a, GMonoid (Rep a)) => Monoid (GenericSemigroupMonoid a)
where
+ mempty = GenericSemigroupMonoid gmempty
+#if !(MIN_VERSION_base(4,11,0))
+ mappend = (<>)
+#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/semigroups-0.18.5/src-ghc7/Data/List/NonEmpty.hs
new/semigroups-0.19.1/src-ghc7/Data/List/NonEmpty.hs
--- old/semigroups-0.18.5/src-ghc7/Data/List/NonEmpty.hs 2018-07-03
00:09:07.000000000 +0200
+++ new/semigroups-0.19.1/src-ghc7/Data/List/NonEmpty.hs 2001-09-09
03:46:40.000000000 +0200
@@ -1,12 +1,7 @@
{-# LANGUAGE CPP #-}
#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 702
-#if defined(MIN_VERSION_hashable) || __GLASGOW_HASKELL__ == 702 \
- || __GLASGOW_HASKELL__ >= 708
{-# LANGUAGE Trustworthy #-}
-#else
-{-# LANGUAGE Safe #-}
-#endif
#endif
#ifdef __GLASGOW_HASKELL__
@@ -171,6 +166,14 @@
import GHC.Generics
#endif
+#ifdef MIN_VERSION_template_haskell
+import qualified Language.Haskell.TH.Syntax as TH
+#ifndef CURRENT_PACKAGE_KEY
+import Data.Version (showVersion)
+import Paths_semigroups (version)
+#endif
+#endif
+
infixr 5 :|, <|
data NonEmpty a = a :| [a] deriving
@@ -188,11 +191,7 @@
#ifdef MIN_VERSION_hashable
instance Hashable a => Hashable (NonEmpty a) where
-#if MIN_VERSION_hashable(1,2,0)
hashWithSalt p (a :| as) = p `hashWithSalt` a `hashWithSalt` as
-#else
- hash (a :| as) = hash a `combine` hash as
-#endif
#endif
#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 708
@@ -205,23 +204,23 @@
#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 702 &&
__GLASGOW_HASKELL__ < 706
instance Generic1 NonEmpty where
type Rep1 NonEmpty
- = D1 D1NonEmpty
- (C1 C1_0NonEmpty
+ = D1 D1'NonEmpty
+ (C1 C1'_0NonEmpty
(S1 NoSelector Par1
:*: S1 NoSelector (Rec1 [])))
from1 (h :| t) = M1 (M1 (M1 (Par1 h) :*: M1 (Rec1 t)))
to1 (M1 (M1 (M1 h :*: M1 t))) = unPar1 h :| unRec1 t
-instance Datatype D1NonEmpty where
+instance Datatype D1'NonEmpty where
datatypeName _ = "NonEmpty"
moduleName _ = "Data.List.NonEmpty"
-instance Constructor C1_0NonEmpty where
+instance Constructor C1'_0NonEmpty where
conName _ = ":|"
conFixity _ = Infix RightAssociative 5
-data D1NonEmpty
-data C1_0NonEmpty
+data D1'NonEmpty
+data C1'_0NonEmpty
#endif
#ifdef MIN_VERSION_deepseq
@@ -346,6 +345,24 @@
toList = toList
#endif
+#ifdef MIN_VERSION_template_haskell
+-- | @since 0.19
+instance TH.Lift a => TH.Lift (NonEmpty a) where
+ lift (x :| xs) = do
+ x' <- TH.lift x
+ xs' <- TH.lift xs
+ return $ TH.InfixE (Just x') (TH.ConE neConsName) (Just xs')
+ where
+ neConsName = TH.mkNameG_d semigroupsPackageKey "Data.List.NonEmpty"
":|"
+
+semigroupsPackageKey :: String
+#ifdef CURRENT_PACKAGE_KEY
+semigroupsPackageKey = CURRENT_PACKAGE_KEY
+#else
+semigroupsPackageKey = "semigroups-" ++ showVersion version
+#endif
+#endif
+
-- | Extract the first element of the stream.
head :: NonEmpty a -> a
head ~(a :| _) = a
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/semigroups-0.18.5/src-ghc7/Data/Semigroup.hs
new/semigroups-0.19.1/src-ghc7/Data/Semigroup.hs
--- old/semigroups-0.18.5/src-ghc7/Data/Semigroup.hs 2018-07-03
00:09:07.000000000 +0200
+++ new/semigroups-0.19.1/src-ghc7/Data/Semigroup.hs 2001-09-09
03:46:40.000000000 +0200
@@ -6,14 +6,7 @@
#endif
#if __GLASGOW_HASKELL__ >= 702
-#define LANGUAGE_DefaultSignatures
-{-# LANGUAGE DefaultSignatures #-}
-#if (defined(MIN_VERSION_hashable)) || __GLASGOW_HASKELL__ == 702 \
- || __GLASGOW_HASKELL__ >= 708
{-# LANGUAGE Trustworthy #-}
-#else
-{-# LANGUAGE Safe #-}
-#endif
#endif
#if __GLASGOW_HASKELL__ >= 702
@@ -213,10 +206,6 @@
-- ('<>') = 'mappend'
-- @
(<>) :: a -> a -> a
-#ifdef LANGUAGE_DefaultSignatures
- default (<>) :: Monoid a => a -> a -> a
- (<>) = mappend
-#endif
-- | Reduce a non-empty list with @\<\>@
--
@@ -481,11 +470,7 @@
#ifdef MIN_VERSION_hashable
instance Hashable a => Hashable (Min a) where
-#if MIN_VERSION_hashable(1,2,0)
hashWithSalt p (Min a) = hashWithSalt p a
-#else
- hash (Min a) = hash a
-#endif
#endif
instance Ord a => Semigroup (Min a) where
@@ -539,24 +524,24 @@
#if __GLASGOW_HASKELL__ >= 702 && __GLASGOW_HASKELL__ < 706
instance Generic1 Min where
- type Rep1 Min = D1 D1Min (C1 C1_0Min (S1 S1_0_0Min Par1))
+ type Rep1 Min = D1 D1'Min (C1 C1'_0Min (S1 S1'_0_0Min Par1))
from1 (Min x) = M1 (M1 (M1 (Par1 x)))
to1 (M1 (M1 (M1 x))) = Min (unPar1 x)
-instance Datatype D1Min where
+instance Datatype D1'Min where
datatypeName _ = "Min"
moduleName _ = "Data.Semigroup"
-instance Constructor C1_0Min where
+instance Constructor C1'_0Min where
conName _ = "Min"
conIsRecord _ = True
-instance Selector S1_0_0Min where
+instance Selector S1'_0_0Min where
selName _ = "getMin"
-data D1Min
-data C1_0Min
-data S1_0_0Min
+data D1'Min
+data C1'_0Min
+data S1'_0_0Min
#endif
newtype Max a = Max { getMax :: a } deriving
@@ -588,11 +573,7 @@
#ifdef MIN_VERSION_hashable
instance Hashable a => Hashable (Max a) where
-#if MIN_VERSION_hashable(1,2,0)
hashWithSalt p (Max a) = hashWithSalt p a
-#else
- hash (Max a) = hash a
-#endif
#endif
instance Ord a => Semigroup (Max a) where
@@ -646,24 +627,24 @@
#if __GLASGOW_HASKELL__ >= 702 && __GLASGOW_HASKELL__ < 706
instance Generic1 Max where
- type Rep1 Max = D1 D1Max (C1 C1_0Max (S1 S1_0_0Max Par1))
+ type Rep1 Max = D1 D1'Max (C1 C1'_0Max (S1 S1'_0_0Max Par1))
from1 (Max x) = M1 (M1 (M1 (Par1 x)))
to1 (M1 (M1 (M1 x))) = Max (unPar1 x)
-instance Datatype D1Max where
+instance Datatype D1'Max where
datatypeName _ = "Max"
moduleName _ = "Data.Semigroup"
-instance Constructor C1_0Max where
+instance Constructor C1'_0Max where
conName _ = "Max"
conIsRecord _ = True
-instance Selector S1_0_0Max where
+instance Selector S1'_0_0Max where
selName _ = "getMax"
-data D1Max
-data C1_0Max
-data S1_0_0Max
+data D1'Max
+data C1'_0Max
+data S1'_0_0Max
#endif
-- | 'Arg' isn't itself a 'Semigroup' in its own right, but it can be placed
inside 'Min' and 'Max'
@@ -711,11 +692,14 @@
#endif
#ifdef MIN_VERSION_hashable
+#if MIN_VERSION_hashable(1,3,0)
+-- | Instance like defined in @hashable-1.3@
+instance Hashable a => Hashable (Arg a b) where
+ hashWithSalt p (Arg a _b) = hashWithSalt p a
+#else
+-- | Instance like defined in @hashable-1.2@
instance (Hashable a, Hashable b) => Hashable (Arg a b) where
-#if MIN_VERSION_hashable(1,2,0)
hashWithSalt p (Arg a b) = hashWithSalt p a `hashWithSalt` b
-#else
- hash (Arg a b) = hashWithSalt (hash a) b
#endif
#endif
@@ -727,22 +711,22 @@
#if __GLASGOW_HASKELL__ >= 702 && __GLASGOW_HASKELL__ < 706
instance Generic1 (Arg a) where
type Rep1 (Arg a)
- = D1 D1Arg
- (C1 C1_0Arg
+ = D1 D1'Arg
+ (C1 C1'_0Arg
(S1 NoSelector (Rec0 a)
:*: S1 NoSelector Par1))
from1 (Arg a b) = M1 (M1 (M1 (K1 a) :*: M1 (Par1 b)))
to1 (M1 (M1 (M1 a :*: M1 b))) = Arg (unK1 a) (unPar1 b)
-instance Datatype D1Arg where
+instance Datatype D1'Arg where
datatypeName _ = "Arg"
moduleName _ = "Data.Semigroup"
-instance Constructor C1_0Arg where
+instance Constructor C1'_0Arg where
conName _ = "Arg"
-data D1Arg
-data C1_0Arg
+data D1'Arg
+data C1'_0Arg
#endif
-- | Use @'Option' ('First' a)@ to get the behavior of 'Data.Monoid.First'
from @Data.Monoid@.
@@ -776,11 +760,7 @@
#ifdef MIN_VERSION_hashable
instance Hashable a => Hashable (First a) where
-#if MIN_VERSION_hashable(1,2,0)
hashWithSalt p (First a) = hashWithSalt p a
-#else
- hash (First a) = hash a
-#endif
#endif
instance Semigroup (First a) where
@@ -817,24 +797,24 @@
#if __GLASGOW_HASKELL__ >= 702 && __GLASGOW_HASKELL__ < 706
instance Generic1 First where
- type Rep1 First = D1 D1First (C1 C1_0First (S1 S1_0_0First Par1))
+ type Rep1 First = D1 D1'First (C1 C1'_0First (S1 S1'_0_0First Par1))
from1 (First x) = M1 (M1 (M1 (Par1 x)))
to1 (M1 (M1 (M1 x))) = First (unPar1 x)
-instance Datatype D1First where
+instance Datatype D1'First where
datatypeName _ = "First"
moduleName _ = "Data.Semigroup"
-instance Constructor C1_0First where
+instance Constructor C1'_0First where
conName _ = "First"
conIsRecord _ = True
-instance Selector S1_0_0First where
+instance Selector S1'_0_0First where
selName _ = "getFirst"
-data D1First
-data C1_0First
-data S1_0_0First
+data D1'First
+data C1'_0First
+data S1'_0_0First
#endif
-- | Use @'Option' ('Last' a)@ to get the behavior of 'Data.Monoid.Last' from
@Data.Monoid@
@@ -867,11 +847,7 @@
#ifdef MIN_VERSION_hashable
instance Hashable a => Hashable (Last a) where
-#if MIN_VERSION_hashable(1,2,0)
hashWithSalt p (Last a) = hashWithSalt p a
-#else
- hash (Last a) = hash a
-#endif
#endif
instance Semigroup (Last a) where
@@ -909,24 +885,24 @@
#if __GLASGOW_HASKELL__ >= 702 && __GLASGOW_HASKELL__ < 706
instance Generic1 Last where
- type Rep1 Last = D1 D1Last (C1 C1_0Last (S1 S1_0_0Last Par1))
+ type Rep1 Last = D1 D1'Last (C1 C1'_0Last (S1 S1'_0_0Last Par1))
from1 (Last x) = M1 (M1 (M1 (Par1 x)))
to1 (M1 (M1 (M1 x))) = Last (unPar1 x)
-instance Datatype D1Last where
+instance Datatype D1'Last where
datatypeName _ = "Last"
moduleName _ = "Data.Semigroup"
-instance Constructor C1_0Last where
+instance Constructor C1'_0Last where
conName _ = "Last"
conIsRecord _ = True
-instance Selector S1_0_0Last where
+instance Selector S1'_0_0Last where
selName _ = "getLast"
-data D1Last
-data C1_0Last
-data S1_0_0Last
+data D1'Last
+data C1'_0Last
+data S1'_0_0Last
#endif
-- (==)/XNOR on Bool forms a 'Semigroup', but has no good name
@@ -996,11 +972,7 @@
#ifdef MIN_VERSION_hashable
instance Hashable a => Hashable (WrappedMonoid a) where
-#if MIN_VERSION_hashable(1,2,0)
hashWithSalt p (WrapMonoid a) = hashWithSalt p a
-#else
- hash (WrapMonoid a) = hash a
-#endif
#endif
instance Monoid m => Semigroup (WrappedMonoid m) where
@@ -1035,24 +1007,24 @@
#if __GLASGOW_HASKELL__ >= 702 && __GLASGOW_HASKELL__ < 706
instance Generic1 WrappedMonoid where
- type Rep1 WrappedMonoid = D1 D1WrappedMonoid (C1 C1_0WrappedMonoid (S1
S1_0_0WrappedMonoid Par1))
+ type Rep1 WrappedMonoid = D1 D1'WrappedMonoid (C1 C1'_0WrappedMonoid (S1
S1'_0_0WrappedMonoid Par1))
from1 (WrapMonoid x) = M1 (M1 (M1 (Par1 x)))
to1 (M1 (M1 (M1 x))) = WrapMonoid (unPar1 x)
-instance Datatype D1WrappedMonoid where
+instance Datatype D1'WrappedMonoid where
datatypeName _ = "WrappedMonoid"
moduleName _ = "Data.Semigroup"
-instance Constructor C1_0WrappedMonoid where
+instance Constructor C1'_0WrappedMonoid where
conName _ = "WrapMonoid"
conIsRecord _ = True
-instance Selector S1_0_0WrappedMonoid where
+instance Selector S1'_0_0WrappedMonoid where
selName _ = "unwrapMonoid"
-data D1WrappedMonoid
-data C1_0WrappedMonoid
-data S1_0_0WrappedMonoid
+data D1'WrappedMonoid
+data C1'_0WrappedMonoid
+data S1'_0_0WrappedMonoid
#endif
-- | Repeat a value @n@ times.
@@ -1089,11 +1061,7 @@
#ifdef MIN_VERSION_hashable
instance Hashable a => Hashable (Option a) where
-#if MIN_VERSION_hashable(1,2,0)
hashWithSalt p (Option a) = hashWithSalt p a
-#else
- hash (Option a) = hash a
-#endif
#endif
instance Functor Option where
@@ -1159,24 +1127,24 @@
#if __GLASGOW_HASKELL__ >= 702 && __GLASGOW_HASKELL__ < 706
instance Generic1 Option where
- type Rep1 Option = D1 D1Option (C1 C1_0Option (S1 S1_0_0Option (Rec1 Maybe)))
+ type Rep1 Option = D1 D1'Option (C1 C1'_0Option (S1 S1'_0_0Option (Rec1
Maybe)))
from1 (Option x) = M1 (M1 (M1 (Rec1 x)))
to1 (M1 (M1 (M1 x))) = Option (unRec1 x)
-instance Datatype D1Option where
+instance Datatype D1'Option where
datatypeName _ = "Option"
moduleName _ = "Data.Semigroup"
-instance Constructor C1_0Option where
+instance Constructor C1'_0Option where
conName _ = "Option"
conIsRecord _ = True
-instance Selector S1_0_0Option where
+instance Selector S1'_0_0Option where
selName _ = "getOption"
-data D1Option
-data C1_0Option
-data S1_0_0Option
+data D1'Option
+data C1'_0Option
+data S1'_0_0Option
#endif
-- | This lets you use a difference list of a 'Semigroup' as a 'Monoid'.