-
Notifications
You must be signed in to change notification settings - Fork 23
/
package.yaml
224 lines (201 loc) · 4.86 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
name: concordium-base
version: 0.1.0.0
license: MPL-2.0
license-file: "LICENSE"
author: "Concordium AG"
maintainer: "[email protected]"
copyright: "Concordium AG"
extra-source-files:
- README.md
- LICENSE
- ./concordium-grpc-api/v2/concordium/types.proto
- ./concordium-grpc-api/v2/concordium/service.proto
- ./concordium-grpc-api/v2/concordium/health.proto
custom-setup:
dependencies:
- base >= 4.7
- Cabal >= 2.2
- directory >= 1.3
- proto-lens-setup >= 0.4
# Metadata used when publishing your package
# synopsis: Short description of your package
# category: Web
# To avoid duplicated efforts in documentation and dealing with the
# complications of embedding Haddock markup inside cabal files, it is
# common to point users to the README.md file.
description: See README
default-extensions:
- FlexibleContexts
- FlexibleInstances
- FunctionalDependencies
- GeneralizedNewtypeDeriving
- LambdaCase
- MultiParamTypeClasses
- RecordWildCards
- TupleSections
- TypeOperators
flags:
static:
description: Use static linking.
manual: True
default: False
dependencies:
- aeson >= 1.4.2
- base >= 4.7 && < 5
- base16-bytestring >= 0.1.1.6
- base64-bytestring >= 1.1.0.0
# binary is used by aeson and we need for a couple of instances. cereal should
# be used for everything else.
- binary >= 0.8
- bytestring >= 0.10
- cereal >= 0.5
- containers >= 0.6
- cryptonite >= 0.27
- deepseq >= 1.4
- exceptions >= 0.10
- ghc-prim >= 0.5.3
- hashable >= 1.2
- microlens >=0.3
- microlens-platform >=0.3
- mtl >= 2.2
- persistent >= 2.10
- pqueue >= 1.4.1
- prettyprinter >= 1.2
- primitive >= 0.7
- QuickCheck >= 2.12
- random >= 1.1
- scientific >= 0.3.2
- singletons
- singletons-th
- singletons-base
- template-haskell >= 2.14
- text >= 1.2
- time >= 1.8
- transformers >= 0.5
- unordered-containers >= 0.2
- vector >= 0.12
- proto-lens >= 0.7
- proto-lens-runtime >= 0.7
library:
source-dirs: haskell-src
ghc-options:
- -Wall
- -Wcompat
- -Werror=missing-fields
- -Werror=missing-methods
- -Wredundant-constraints
- -fno-ignore-asserts
extra-libraries:
- concordium_base
- sha_2
when:
- condition: os(windows)
extra-libraries:
- userenv
- ws2_32
- bcrypt
generated-exposed-modules:
Proto.V2.Concordium.Health
Proto.V2.Concordium.Health_Fields
Proto.V2.Concordium.Service
Proto.V2.Concordium.Service_Fields
Proto.V2.Concordium.Types
Proto.V2.Concordium.Types_Fields
executables:
generate-update-keys:
main: Main.hs
source-dirs: haskell-bins/generate-update-keys
ghc-options:
- -Wall
- -Wcompat
- -Werror=missing-fields
- -Werror=missing-methods
- -Wredundant-constraints
- -fno-ignore-asserts
# when:
# - condition: "!os(windows) && !flag(static)"
# ghc-options: -dynamic
dependencies:
- aeson-pretty >= 0.8
- concordium-base
- filepath >= 1.4
- optparse-applicative >= 0.15
genesis:
main: Genesis.hs
source-dirs: haskell-bins/genesis
# when:
# - condition: "!os(windows) && !flag(static)"
# ghc-options: -dynamic
ghc-options:
- -Wall
- -Wcompat
- -fno-ignore-asserts
dependencies:
- concordium-base
- cmdargs >= 0.10
- filepath >= 1.4
- aeson-pretty >= 0.8
tests:
test:
main: Spec.hs
source-dirs: haskell-tests
ghc-options:
- -threaded
- -with-rtsopts=-N
- -Wall
- -Wno-deprecations
when:
- condition: flag(static)
ld-options:
- -static
- condition: "!os(windows)"
ghc-options: -dynamic
dependencies:
- concordium-base
- containers
- hspec >= 2.6
- hspec-expectations >= 0.8
- HUnit >= 1.6
- QuickCheck >= 2.12
- random
benchmarks:
ed25519-perf:
main: haskell-bench/Ed25519Perf.hs
dependencies:
- concordium-base
- criterion >= 1.5
when:
- condition: "!os(windows)"
ghc-options: -dynamic
ed25519dlog-perf:
main: haskell-bench/Ed25519DlogPerf.hs
dependencies:
- concordium-base
- criterion >= 1.5
when:
- condition: "!os(windows)"
ghc-options: -dynamic
bls-perf:
main: haskell-bench/BlsPerf.hs
dependencies:
- concordium-base
- criterion >= 1.5
when:
- condition: "!os(windows)"
ghc-options: -dynamic
sha256-perf:
main: haskell-bench/SHA256Perf.hs
dependencies:
- concordium-base
- criterion >= 1.5
when:
- condition: "!os(windows)"
ghc-options: -dynamic
verify-credential-perf:
main: haskell-bench/VerifyCredentialPerf.hs
dependencies:
- concordium-base
- criterion >= 1.5
when:
- condition: "!os(windows)"
ghc-options: -dynamic