diff --git a/errors.cabal b/errors.cabal new file mode 100644 index 0000000..3cf069a --- /dev/null +++ b/errors.cabal @@ -0,0 +1,44 @@ +Name: errors +Version: 2.3.0 +x-revision: 1 +Cabal-Version: >=1.8.0.2 +Build-Type: Simple +Tested-With: GHC == 7.8.4, GHC == 7.10.2, GHC == 8.0.1 +License: BSD3 +License-File: LICENSE +Copyright: 2012, 2013 Gabriel Gonzalez +Author: Gabriel Gonzalez +Maintainer: Gabriel439@gmail.com +Bug-Reports: https://github.com/Gabriel439/Haskell-Errors-Library/issues +Synopsis: Simplified error-handling +Description: + The one-stop shop for all your error-handling needs! Just import + "Control.Error". + . + This library encourages an error-handling style that directly uses the type + system, rather than out-of-band exceptions. +Category: Control, Error Handling +extra-source-files: CHANGELOG.md +Source-Repository head + Type: git + Location: https://github.com/Gabriel439/Haskell-Errors-Library + +Library + Build-Depends: + base >= 4.7 && < 5 , + exceptions >= 0.6 && < 0.11, + text < 1.3 , + transformers >= 0.2 && < 0.6 , + transformers-compat >= 0.4 && < 0.8 + if impl(ghc <= 7.6.3) + Build-Depends: + safe >= 0.3.3 && < 0.3.10 + else + Build-Depends: + safe >= 0.3.3 && < 0.4 + Exposed-Modules: + Control.Error, + Control.Error.Safe, + Control.Error.Script, + Control.Error.Util, + Data.EitherR diff --git a/ghc-errors.changes b/ghc-errors.changes index cf3391a..7aad3de 100644 --- a/ghc-errors.changes +++ b/ghc-errors.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jul 27 07:52:52 UTC 2021 - psimons@suse.com + +- Update errors to version 2.3.0 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup diff --git a/ghc-errors.spec b/ghc-errors.spec index 55e01b9..f59b792 100644 --- a/ghc-errors.spec +++ b/ghc-errors.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-errors # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,6 +24,7 @@ Summary: Simplified error-handling License: BSD-3-Clause 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/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-exceptions-devel BuildRequires: ghc-rpm-macros @@ -52,6 +53,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep %autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build