-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathimmortal-queue.cabal
More file actions
81 lines (76 loc) · 2.74 KB
/
immortal-queue.cabal
File metadata and controls
81 lines (76 loc) · 2.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.38.1.
--
-- see: https://github.com/sol/hpack
--
-- hash: 39cceb7713d23b85fd53f67a2cf6156f99d4691c2a3deed4a56873542beff9eb
name: immortal-queue
version: 0.2.0.0
synopsis: Build a pool of queue-processing worker threads.
description: @immortal-queue@ is a library for build an asynchronous worker pool that
processes action from a generic queue. You can use any thread-safe datatype
with a push and pop like a @TQueue@ or a @persistent@ database table.
.
The worker pool is configured by building an @ImmortalQueue@ type, which
describes how to push and pop from the queue as well as how to process
items and handle errors.
.
For a simple usage example using a TQueue, see the module documentation.
For a more complex example that uses a @persistent@ database as a queue,
see
<https://github.com/Southern-Exposure-Seed-Exchange/southernexposure.com/blob/develop/server/src/Workers.hs Southern Exposure's website code>.
category: Concurrency
homepage: https://github.com/prikhi/immortal-queue#readme
bug-reports: https://github.com/prikhi/immortal-queue/issues
author: Pavan Rikhi
maintainer: pavan.rikhi@gmail.com
copyright: 2020-2025 Pavan Rikhi
license: BSD3
license-file: LICENSE
build-type: Simple
extra-source-files:
README.md
CHANGELOG.md
source-repository head
type: git
location: https://github.com/prikhi/immortal-queue
library
exposed-modules:
Control.Immortal.Queue
other-modules:
Paths_immortal_queue
hs-source-dirs:
src
ghc-options: -Wall -O2
build-depends:
async ==2.*
, base >=4.7 && <5
, immortal <1 && >=0.2.1
default-language: Haskell2010
if impl(ghc >= 8.0)
ghc-options: -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
else
ghc-options: -fwarn-incomplete-record-updates -fwarn-incomplete-uni-patterns
if impl(ghc < 8.0)
build-depends:
nats ==1.*
test-suite immortal-queue-test
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules:
MockQueue
Paths_immortal_queue
hs-source-dirs:
tests
ghc-options: -Wall -O2 -threaded -rtsopts -with-rtsopts "-N -T"
build-depends:
base >=4.7 && <5
, immortal-queue
, stm
, tasty
, tasty-hunit
default-language: Haskell2010
if impl(ghc >= 8.0)
ghc-options: -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
else
ghc-options: -fwarn-incomplete-record-updates -fwarn-incomplete-uni-patterns