From 429a4c02c5b950401cd59216de5606873a87aa4ee46ac4b7414b30df348e7a6b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 15 Sep 2018 01:01:37 +0000 Subject: [PATCH 1/3] osc copypac from project:devel:languages:haskell:ghc-8.4.x package:ghc-async revision:7, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-async?expand=0&rev=33 --- async.cabal | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++ ghc-async.spec | 2 ++ 2 files changed, 100 insertions(+) create mode 100644 async.cabal diff --git a/async.cabal b/async.cabal new file mode 100644 index 0000000..bef4566 --- /dev/null +++ b/async.cabal @@ -0,0 +1,98 @@ +name: async +version: 2.2.1 +x-revision: 1 +-- don't forget to update ./changelog.md! +synopsis: Run IO operations asynchronously and wait for their results + +description: + This package provides a higher-level interface over + threads, in which an @Async a@ is a concurrent + thread that will eventually deliver a value of + type @a@. The package provides ways to create + @Async@ computations, wait for their results, and + cancel them. + . + Using @Async@ is safer than using threads in two + ways: + . + * When waiting for a thread to return a result, + if the thread dies with an exception then the + caller must either re-throw the exception + ('wait') or handle it ('waitCatch'); the + exception cannot be ignored. + . + * The API makes it possible to build a tree of + threads that are automatically killed when + their parent dies (see 'withAsync'). + +license: BSD3 +license-file: LICENSE +author: Simon Marlow +maintainer: Simon Marlow +copyright: (c) Simon Marlow 2012 +category: Concurrency +build-type: Simple +cabal-version: >=1.10 +homepage: https://github.com/simonmar/async +bug-reports: https://github.com/simonmar/async/issues +tested-with: GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2, GHC==7.2.2, GHC==7.0.4 + +extra-source-files: + changelog.md + bench/race.hs + +source-repository head + type: git + location: https://github.com/simonmar/async.git + +library + default-language: Haskell2010 + other-extensions: CPP, MagicHash, RankNTypes, UnboxedTuples + if impl(ghc>=7.1) + other-extensions: Trustworthy + exposed-modules: Control.Concurrent.Async + build-depends: base >= 4.3 && < 4.13, hashable >= 1.1.1.0 && < 1.3, stm >= 2.2 && < 2.6 + +test-suite test-async + default-language: Haskell2010 + type: exitcode-stdio-1.0 + hs-source-dirs: test + main-is: test-async.hs + build-depends: base >= 4.3 && < 4.13, + async, + stm, + test-framework, + test-framework-hunit, + HUnit + +flag bench + default: False + +executable concasync + if !flag(bench) + buildable: False + default-language: Haskell2010 + hs-source-dirs: bench + main-is: concasync.hs + build-depends: base, async, stm + ghc-options: -O2 + +executable conccancel + if !flag(bench) + buildable: False + default-language: Haskell2010 + hs-source-dirs: bench + main-is: conccancel.hs + build-depends: base, async, stm + ghc-options: -O2 -threaded + +executable race + if !flag(bench) + buildable: False + default-language: Haskell2010 + hs-source-dirs: bench + main-is: race.hs + build-depends: base, async, stm + ghc-options: -O2 -threaded + + diff --git a/ghc-async.spec b/ghc-async.spec index b75ebc1..2925e37 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -26,6 +26,7 @@ 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/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-hashable-devel BuildRequires: ghc-rpm-macros @@ -64,6 +65,7 @@ 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 From 396da64468a50f328bdd17e8f51b854d674d1a9bd01347ca6d4601f20145c265 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 18 Oct 2018 09:47:06 +0000 Subject: [PATCH 2/3] osc copypac from project:devel:languages:haskell:ghc-8.6.x package:ghc-async revision:3, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-async?expand=0&rev=34 --- ghc-async.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index 2925e37..f6d0ca0 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -12,7 +12,7 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # From dee2d68f180e619378b248ad5ed7dfe160e2890a77297ccbe20b1e76661f6ba7 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 19 Oct 2018 13:17:15 +0000 Subject: [PATCH 3/3] osc copypac from project:devel:languages:haskell:ghc-8.6.x package:ghc-async revision:4, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-async?expand=0&rev=35 --- ghc-async.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ghc-async.changes b/ghc-async.changes index 378817f..48c6eac 100644 --- a/ghc-async.changes +++ b/ghc-async.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Oct 19 13:13:07 UTC 2018 - Peter Simons + +- Update Cabal build instructions to support ghc-8.6.1. + ------------------------------------------------------------------- Wed Jul 18 14:26:13 UTC 2018 - psimons@suse.com