update to 2.2.1
This commit is contained in:
parent
27628d08d6
commit
67a3f53ab8
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@
|
|||||||
/async-2.1.0.tar.gz
|
/async-2.1.0.tar.gz
|
||||||
/async-2.1.1.tar.gz
|
/async-2.1.1.tar.gz
|
||||||
/async-2.1.1.1.tar.gz
|
/async-2.1.1.1.tar.gz
|
||||||
|
/async-2.2.1.tar.gz
|
||||||
|
98
async-2.2.1.cabal
Normal file
98
async-2.2.1.cabal
Normal file
@ -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 <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.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
|
||||||
|
|
||||||
|
|
@ -7,19 +7,21 @@
|
|||||||
%bcond_with tests
|
%bcond_with tests
|
||||||
|
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
Version: 2.1.1.1
|
Version: 2.2.1
|
||||||
Release: 6%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Run IO operations asynchronously and wait for their results
|
Summary: Run IO operations asynchronously and wait for their results
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
Url: https://hackage.haskell.org/package/%{pkg_name}
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
||||||
# Begin cabal-rpm sources:
|
# Begin cabal-rpm sources:
|
||||||
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
||||||
|
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
|
||||||
# End cabal-rpm sources
|
# End cabal-rpm sources
|
||||||
|
|
||||||
# Begin cabal-rpm deps:
|
# Begin cabal-rpm deps:
|
||||||
BuildRequires: ghc-Cabal-devel
|
BuildRequires: ghc-Cabal-devel
|
||||||
BuildRequires: ghc-rpm-macros
|
BuildRequires: ghc-rpm-macros
|
||||||
|
BuildRequires: ghc-hashable-devel
|
||||||
BuildRequires: ghc-stm-devel
|
BuildRequires: ghc-stm-devel
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: ghc-HUnit-devel
|
BuildRequires: ghc-HUnit-devel
|
||||||
@ -62,6 +64,7 @@ This package provides the Haskell %{pkg_name} library development files.
|
|||||||
%prep
|
%prep
|
||||||
# Begin cabal-rpm setup:
|
# Begin cabal-rpm setup:
|
||||||
%setup -q -n %{pkgver}
|
%setup -q -n %{pkgver}
|
||||||
|
cp -bp %{SOURCE1} %{pkg_name}.cabal
|
||||||
# End cabal-rpm setup
|
# End cabal-rpm setup
|
||||||
|
|
||||||
|
|
||||||
@ -100,6 +103,9 @@ This package provides the Haskell %{pkg_name} library development files.
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 21 2019 Jens Petersen <petersen@redhat.com> - 2.2.1-1
|
||||||
|
- update to 2.2.1
|
||||||
|
|
||||||
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 2.1.1.1-6
|
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 2.1.1.1-6
|
||||||
- refresh to cabal-rpm-0.13
|
- refresh to cabal-rpm-0.13
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (async-2.1.1.1.tar.gz) = 6c617e6028e6b10dfa19a1157f3fd8521190725e9aafa60f6668c6c40f88445f03de4fa70a824aada2b008fc8a5d49e7d1aade1843ba990a382ffb9d3ef9ec21
|
SHA512 (async-2.2.1.tar.gz) = 65daa880d2c10fb235ddd431f7b1d80b2c3cc78c8dfba7deb7f1f60a6b6495f159daffa560ad84908687b083309c300765b4ba45a6f787b24d364f3c0e070749
|
||||||
|
Loading…
Reference in New Issue
Block a user