commit 02dcbdf348253a49ace1adf5fce8e1e00cd190f4bc147c1344a03c1e963b5144 Author: Peter Simons Date: Wed Jul 11 01:01:38 2018 +0000 osc copypac from project:devel:languages:haskell:ghc-8.4.x package:ghc-enclosed-exceptions revision:1, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-enclosed-exceptions?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/enclosed-exceptions-1.0.2.tar.gz b/enclosed-exceptions-1.0.2.tar.gz new file mode 100644 index 0000000..022793b --- /dev/null +++ b/enclosed-exceptions-1.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7b9beab82d219c0dd879dfdef70fb74a4a7595b4dbd0baf7adb12cdbbe8189f1 +size 5266 diff --git a/enclosed-exceptions.cabal b/enclosed-exceptions.cabal new file mode 100644 index 0000000..a7d5cbe --- /dev/null +++ b/enclosed-exceptions.cabal @@ -0,0 +1,47 @@ +name: enclosed-exceptions +version: 1.0.2 +x-revision: 1 +synopsis: Catching all exceptions from within an enclosed computation +description: Catching all exceptions raised within an enclosed computation, + while remaining responsive to (external) asynchronous exceptions. + For more information on the technique, please see: + +homepage: https://github.com/jcristovao/enclosed-exceptions +license: MIT +license-file: LICENSE +author: Michael Snoyman, João Cristóvão +maintainer: jmacristovao@gmail.com, michael@snoyman.com +category: Control +build-type: Simple +cabal-version: >=1.8 + +library + exposed-modules: Control.Exception.Enclosed + hs-source-dirs: src + build-depends: base >= 4.6 && < 5 + , transformers + , lifted-base >= 0.2 + , monad-control + , deepseq + , transformers-base + ghc-options: -Wall -fno-warn-orphans + +test-suite test + hs-source-dirs: src, test + main-is: main.hs + type: exitcode-stdio-1.0 + build-depends: base + , lifted-base >= 0.2 + , monad-control + , async >= 2.0 + , deepseq + , hspec >= 1.3 + , QuickCheck + , stm + , transformers + , transformers-base + ghc-options: -Wall + +source-repository head + type: git + location: git://github.com/jcristovao/enclosed-exceptions.git diff --git a/ghc-enclosed-exceptions.changes b/ghc-enclosed-exceptions.changes new file mode 100644 index 0000000..d01d5d6 --- /dev/null +++ b/ghc-enclosed-exceptions.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Jul 9 19:45:07 UTC 2018 - psimons@suse.com + +- Add enclosed-exceptions at version 1.0.2. diff --git a/ghc-enclosed-exceptions.spec b/ghc-enclosed-exceptions.spec new file mode 100644 index 0000000..6a69283 --- /dev/null +++ b/ghc-enclosed-exceptions.spec @@ -0,0 +1,86 @@ +# +# spec file for package ghc-enclosed-exceptions +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%global pkg_name enclosed-exceptions +%bcond_with tests +Name: ghc-%{pkg_name} +Version: 1.0.2 +Release: 0 +Summary: Catching all exceptions from within an enclosed computation +License: MIT +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/1.cabal#/%{pkg_name}.cabal +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-deepseq-devel +BuildRequires: ghc-lifted-base-devel +BuildRequires: ghc-monad-control-devel +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-transformers-base-devel +BuildRequires: ghc-transformers-devel +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-async-devel +BuildRequires: ghc-hspec-devel +BuildRequires: ghc-stm-devel +%endif + +%description +Catching all exceptions raised within an enclosed computation, while remaining +responsive to (external) asynchronous exceptions. For more information on the +technique, please see: +. + +%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} +Requires(postun): ghc-compiler = %{ghc_version} + +%description devel +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 + +%install +%ghc_lib_install + +%check +%cabal_test + +%post devel +%ghc_pkg_recache + +%postun devel +%ghc_pkg_recache + +%files -f %{name}.files +%license LICENSE + +%files devel -f %{name}-devel.files + +%changelog