forked from mbg/network-wait
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.yaml
90 lines (81 loc) · 1.83 KB
/
package.yaml
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
82
83
84
85
86
87
88
89
90
name: network-wait
version: 0.2.0.0
github: "mbg/network-wait"
license: MIT
author: "Michael B. Gale"
maintainer: "github@michael-gale.co.uk"
copyright: "2022 Michael B. Gale"
extra-source-files:
- README.md
- ChangeLog.md
synopsis: Lightweight library for waiting on networked services to become available.
category: Network
description: |
Please see the README on GitHub at <https://github.com/mbg/network-wait#readme> and
Haddock documentation for all modules, including those that are gated behind
package flags, at <https://mbg.github.io/network-wait/>
dependencies:
- base >= 4.7 && < 5
- exceptions
- network
- retry
flags:
postgres:
description: Enable Postgres support.
manual: true
default: false
redis:
description: Enable Redis support.
manual: true
default: false
when:
- condition: flag(postgres)
dependencies:
- postgresql-simple
- condition: flag(redis)
dependencies:
- hedis
ghc-options:
- -Wall
library:
source-dirs: src
when:
- condition: flag(postgres)
exposed-modules: Network.Wait.PostgreSQL
- condition: flag(redis)
exposed-modules: Network.Wait.Redis
tests:
network-wait-test:
main: Spec.hs
source-dirs: test
dependencies:
- network-wait
- network-simple
- tasty
- tasty-hunit
network-wait-test-postgres:
main: Spec.hs
source-dirs: test-postgres
dependencies:
- network-wait
- tasty
- tasty-hunit
when:
condition: flag(postgres)
then:
buildable: true
else:
buildable: false
network-wait-test-redis:
main: Spec.hs
source-dirs: test-redis
dependencies:
- network-wait
- tasty
- tasty-hunit
when:
condition: flag(redis)
then:
buildable: true
else:
buildable: false