osc copypac from project:devel:languages:haskell:ghc-8.6.x package:ghc-async revision:8, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-async?expand=0&rev=48
This commit is contained in:
parent
5ee7cb0953
commit
aba54cfe1b
98
async.cabal
98
async.cabal
@ -1,98 +0,0 @@
|
|||||||
name: async
|
|
||||||
version: 2.2.2
|
|
||||||
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 <marlowsd@gmail.com>
|
|
||||||
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.10.1, GHC==8.8.3, GHC==8.6.5, GHC==8.4.4, 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.15, hashable >= 1.1.2.0 && < 1.4, 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.15,
|
|
||||||
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
|
|
||||||
|
|
||||||
|
|
@ -1,24 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Mon Aug 31 09:34:31 UTC 2020 - psimons@suse.com
|
|
||||||
|
|
||||||
- Update async to version 2.2.2 revision 1.
|
|
||||||
Upstream has revised the Cabal build instructions on Hackage.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Tue Aug 18 10:44:01 UTC 2020 - Peter Simons <psimons@suse.com>
|
|
||||||
|
|
||||||
- Replace %setup -q with the more modern %autosetup macro.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Tue Jun 16 11:13:44 UTC 2020 - Peter Simons <psimons@suse.com>
|
|
||||||
|
|
||||||
- Re-generate file with latest version of spec-cleaner.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Thu May 7 08:08:19 UTC 2020 - Peter Simons <psimons@suse.com>
|
|
||||||
|
|
||||||
- Update Cabal file to get more accurate dependency information.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Nov 8 16:13:14 UTC 2019 - Peter Simons <psimons@suse.com>
|
Fri Nov 8 16:13:14 UTC 2019 - Peter Simons <psimons@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ghc-async
|
# spec file for package ghc-async
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -25,7 +25,6 @@ Summary: Run IO operations asynchronously and wait for their results
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://hackage.haskell.org/package/%{pkg_name}
|
URL: https://hackage.haskell.org/package/%{pkg_name}
|
||||||
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
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-Cabal-devel
|
||||||
BuildRequires: ghc-hashable-devel
|
BuildRequires: ghc-hashable-devel
|
||||||
BuildRequires: ghc-rpm-macros
|
BuildRequires: ghc-rpm-macros
|
||||||
@ -62,8 +61,7 @@ Requires(postun): ghc-compiler = %{ghc_version}
|
|||||||
This package provides the Haskell %{pkg_name} library development files.
|
This package provides the Haskell %{pkg_name} library development files.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pkg_name}-%{version}
|
%setup -q -n %{pkg_name}-%{version}
|
||||||
cp -p %{SOURCE1} %{pkg_name}.cabal
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ghc_lib_build
|
%ghc_lib_build
|
||||||
|
Loading…
Reference in New Issue
Block a user