Accepting request 607792 from devel:languages:haskell

Update ghc-either to the latest version.

OBS-URL: https://build.opensuse.org/request/show/607792
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-either?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2018-05-30 10:07:07 +00:00 committed by Git OBS Bridge
commit 463a8e5142
5 changed files with 28 additions and 67 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b087cb0fb63fec2fbdcac05fef0d03751daef5deb86cda3c732b9a6a31e634d3
size 9376

3
either-5.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:75cee27641a34f80e6c71f82469a76c7f51d23a522e792e2733269ebf7cbf420
size 8637

View File

@ -1,50 +0,0 @@
name: either
category: Control, Monads
version: 4.4.1.1
x-revision: 2
license: BSD3
cabal-version: >= 1.6
license-file: LICENSE
author: Edward A. Kmett
maintainer: Edward A. Kmett <ekmett@gmail.com>
stability: provisional
homepage: http://github.com/ekmett/either/
bug-reports: http://github.com/ekmett/either/issues
copyright: Copyright (C) 2008-2014 Edward A. Kmett
synopsis: An either monad transformer
description: An either monad transformer
build-type: Simple
extra-source-files:
.gitignore
.ghci
.vim.custom
.travis.yml
CHANGELOG.markdown
README.markdown
source-repository head
type: git
location: git://github.com/ekmett/either.git
library
build-depends:
base >= 4 && < 5,
bifunctors >= 4 && < 6,
exceptions >= 0.5 && < 0.9,
free >= 4.9 && < 5,
monad-control >= 0.3.2 && < 1.1,
MonadRandom >= 0.1 && < 0.6,
mtl >= 2.0 && < 2.3,
mmorph >= 1.0.0 && < 1.2,
profunctors >= 4 && < 6,
semigroups >= 0.8.3.1 && < 1,
semigroupoids >= 4 && < 6,
transformers >= 0.2 && < 0.6,
transformers-base >= 0.4 && < 0.5
extensions: CPP
exposed-modules: Control.Monad.Trans.Either
Data.Either.Combinators
Data.Either.Validation
ghc-options: -Wall
hs-source-dirs: src

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon May 14 17:02:11 UTC 2018 - psimons@suse.com
- Update either to version 5.
* Changed the semantics of the `Validation` `Alt` and `Alternative` instances to collect errors.
The previous implementation did not correctly abide the laws.
* Added `vap`, for when users want validation like semantics but don't want to convert back and forth to validation all the time. Similarly, added `ealt` to give either's `Alt` semantics to validation.
* Dropped the deprecated `Control.Monad.Trans.Either`. Use `Control.Monad.Trans.Except` from `transformers` and/or
`transformers-compat` instead.
* Add `MMonad` instance for `EitherT`
* Deprecate `Control.Monad.Trans.Either` in favor of `Control.Monad.Trans.Except`
* Add `firstEitherT`
-------------------------------------------------------------------
Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package ghc-either
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 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
@ -17,32 +17,28 @@
%global pkg_name either
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 4.4.1.1
Version: 5
Release: 0
Summary: An either monad transformer
Summary: Combinators for working with sums
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
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-MonadRandom-devel
BuildRequires: ghc-bifunctors-devel
BuildRequires: ghc-exceptions-devel
BuildRequires: ghc-free-devel
BuildRequires: ghc-mmorph-devel
BuildRequires: ghc-monad-control-devel
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-profunctors-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-semigroupoids-devel
BuildRequires: ghc-semigroups-devel
BuildRequires: ghc-transformers-base-devel
BuildRequires: ghc-transformers-devel
%if %{with tests}
BuildRequires: ghc-hedgehog-devel
%endif
%description
An either monad transformer.
Combinators for working with sums.
%package devel
Summary: Haskell %{pkg_name} library development files
@ -57,7 +53,6 @@ This package provides the Haskell %{pkg_name} library development files.
%prep
%setup -q -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build
@ -65,6 +60,9 @@ cp -p %{SOURCE1} %{pkg_name}.cabal
%install
%ghc_lib_install
%check
%cabal_test
%post devel
%ghc_pkg_recache
@ -72,7 +70,7 @@ cp -p %{SOURCE1} %{pkg_name}.cabal
%ghc_pkg_recache
%files -f %{name}.files
%doc LICENSE
%license LICENSE
%files devel -f %{name}-devel.files
%doc CHANGELOG.markdown README.markdown