Accepting request 1231417 from devel:languages:haskell

version update for ghc-9.10.1

OBS-URL: https://build.opensuse.org/request/show/1231417
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-async?expand=0&rev=33
This commit is contained in:
Dominique Leuenberger 2024-12-20 22:10:06 +00:00 committed by Git OBS Bridge
commit 78218660bf
3 changed files with 125 additions and 119 deletions

View File

@ -1,118 +1,118 @@
name: async name: async
version: 2.2.5 version: 2.2.5
x-revision: 2 x-revision: 3
-- don't forget to update ./changelog.md! -- don't forget to update ./changelog.md!
synopsis: Run IO operations asynchronously and wait for their results synopsis: Run IO operations asynchronously and wait for their results
description: description:
This package provides a higher-level interface over This package provides a higher-level interface over
threads, in which an @Async a@ is a concurrent threads, in which an @Async a@ is a concurrent
thread that will eventually deliver a value of thread that will eventually deliver a value of
type @a@. The package provides ways to create type @a@. The package provides ways to create
@Async@ computations, wait for their results, and @Async@ computations, wait for their results, and
cancel them. cancel them.
. .
Using @Async@ is safer than using threads in two Using @Async@ is safer than using threads in two
ways: ways:
. .
* When waiting for a thread to return a result, * When waiting for a thread to return a result,
if the thread dies with an exception then the if the thread dies with an exception then the
caller must either re-throw the exception caller must either re-throw the exception
('wait') or handle it ('waitCatch'); the ('wait') or handle it ('waitCatch'); the
exception cannot be ignored. exception cannot be ignored.
. .
* The API makes it possible to build a tree of * The API makes it possible to build a tree of
threads that are automatically killed when threads that are automatically killed when
their parent dies (see 'withAsync'). their parent dies (see 'withAsync').
license: BSD3 license: BSD3
license-file: LICENSE license-file: LICENSE
author: Simon Marlow author: Simon Marlow
maintainer: Simon Marlow <marlowsd@gmail.com> maintainer: Simon Marlow <marlowsd@gmail.com>
copyright: (c) Simon Marlow 2012 copyright: (c) Simon Marlow 2012
category: Concurrency category: Concurrency
build-type: Simple build-type: Simple
cabal-version: >=1.10 cabal-version: >=1.10
homepage: https://github.com/simonmar/async homepage: https://github.com/simonmar/async
bug-reports: https://github.com/simonmar/async/issues bug-reports: https://github.com/simonmar/async/issues
tested-with: tested-with:
GHC == 9.10.1 GHC == 9.10.1
GHC == 9.8.2 GHC == 9.8.2
GHC == 9.6.6 GHC == 9.6.6
GHC == 9.4.8 GHC == 9.4.8
GHC == 9.2.8 GHC == 9.2.8
GHC == 9.0.2 GHC == 9.0.2
GHC == 8.10.7 GHC == 8.10.7
GHC == 8.8.4 GHC == 8.8.4
GHC == 8.6.5 GHC == 8.6.5
GHC == 8.4.4 GHC == 8.4.4
GHC == 8.2.2 GHC == 8.2.2
GHC == 8.0.2 GHC == 8.0.2
-- CI does not support GHC 7 -- CI does not support GHC 7
-- GHC == 7.10.3 -- GHC == 7.10.3
-- GHC == 7.8.4 -- GHC == 7.8.4
-- GHC == 7.6.3 -- GHC == 7.6.3
-- GHC == 7.4.2 -- GHC == 7.4.2
-- GHC == 7.2.2 -- GHC == 7.2.2
-- GHC == 7.0.4 -- GHC == 7.0.4
extra-source-files: extra-source-files:
changelog.md changelog.md
bench/race.hs bench/race.hs
source-repository head source-repository head
type: git type: git
location: https://github.com/simonmar/async.git location: https://github.com/simonmar/async.git
library library
default-language: Haskell2010 default-language: Haskell2010
other-extensions: CPP, MagicHash, RankNTypes, UnboxedTuples other-extensions: CPP, MagicHash, RankNTypes, UnboxedTuples
if impl(ghc>=7.1) if impl(ghc>=7.1)
other-extensions: Trustworthy other-extensions: Trustworthy
exposed-modules: Control.Concurrent.Async exposed-modules: Control.Concurrent.Async
Control.Concurrent.Async.Internal Control.Concurrent.Async.Internal
build-depends: base >= 4.3 && < 4.21, build-depends: base >= 4.3 && < 4.22,
hashable >= 1.1.2.0 && < 1.6, hashable >= 1.1.2.0 && < 1.6,
stm >= 2.2 && < 2.6 stm >= 2.2 && < 2.6
test-suite test-async test-suite test-async
default-language: Haskell2010 default-language: Haskell2010
type: exitcode-stdio-1.0 type: exitcode-stdio-1.0
hs-source-dirs: test hs-source-dirs: test
main-is: test-async.hs main-is: test-async.hs
build-depends: base, build-depends: base,
async, async,
stm, stm,
test-framework, test-framework,
test-framework-hunit, test-framework-hunit,
HUnit HUnit
flag bench flag bench
default: False default: False
executable concasync executable concasync
if !flag(bench) if !flag(bench)
buildable: False buildable: False
default-language: Haskell2010 default-language: Haskell2010
hs-source-dirs: bench hs-source-dirs: bench
main-is: concasync.hs main-is: concasync.hs
build-depends: base, async, stm build-depends: base, async, stm
ghc-options: -O2 ghc-options: -O2
executable conccancel executable conccancel
if !flag(bench) if !flag(bench)
buildable: False buildable: False
default-language: Haskell2010 default-language: Haskell2010
hs-source-dirs: bench hs-source-dirs: bench
main-is: conccancel.hs main-is: conccancel.hs
build-depends: base, async, stm build-depends: base, async, stm
ghc-options: -O2 -threaded ghc-options: -O2 -threaded
executable race executable race
if !flag(bench) if !flag(bench)
buildable: False buildable: False
default-language: Haskell2010 default-language: Haskell2010
hs-source-dirs: bench hs-source-dirs: bench
main-is: race.hs main-is: race.hs
build-depends: base, async, stm build-depends: base, async, stm
ghc-options: -O2 -threaded ghc-options: -O2 -threaded

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Nov 6 01:56:41 UTC 2024 - Peter Simons <psimons@suse.com>
- Update async to version 2.2.5 revision 3.
Upstream has revised the Cabal build instructions on Hackage.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 15 18:30:21 UTC 2024 - Peter Simons <psimons@suse.com> Thu Aug 15 18:30:21 UTC 2024 - Peter Simons <psimons@suse.com>

View File

@ -26,7 +26,7 @@ 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/2.cabal#/%{pkg_name}.cabal Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/3.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-base-devel BuildRequires: ghc-base-devel
BuildRequires: ghc-base-prof BuildRequires: ghc-base-prof