-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathphrasebook.cabal
307 lines (250 loc) · 7.01 KB
/
phrasebook.cabal
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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
cabal-version: 3.0
name: phrasebook
version: 0
common base
default-language: Haskell2010
-- Enable all warnings. This is good practice for any
-- project, because GHC does not by default enable all
-- warnings that are likely indicators of serious problems.
ghc-options: -Wall
common example
import: base
hs-source-dirs: .
-- For the examples, we disable some specific warnings.
-- In a typical project we would leave all of these enabled,
-- but we allow the Phrasebook code to be a bit more lax so
-- that we can shorten the code and simplify its presentation.
ghc-options:
-fno-warn-missing-signatures
-fno-warn-name-shadowing
-fno-warn-type-defaults
-fno-warn-unused-do-bind
-fno-warn-unused-imports
common testing
import: base
hs-source-dirs: ./tests
ghc-options: -fno-warn-missing-signatures
build-depends: base, containers, megaparsec,
phrasebook-testing
default-extensions:
BlockArguments NumericUnderscores OverloadedLists
OverloadedStrings ScopedTypeVariables TypeApplications
mixins:
base hiding (Prelude)
, phrasebook-testing (PhrasebookTesting as Prelude)
library phrasebook-testing
import: base
hs-source-dirs: ./tests
exposed-modules: PhrasebookTesting
default-extensions:
BlockArguments NumericUnderscores OverloadedLists
OverloadedStrings ScopedTypeVariables TypeApplications
build-depends: base, bytestring, containers,
hedgehog, directory, megaparsec, mtl,
process, relude, temporary, text
mixins:
base hiding (Prelude)
, relude (Relude as Prelude)
executable bounded-queues
import: example
main-is: bounded-queues.hs
build-depends: async, base,
mwc-random, safe-exceptions, stm
test-suite test-bounded-queues
import: testing
type: exitcode-stdio-1.0
main-is: test-bounded-queues.hs
executable branching
import: example
main-is: branching.hs
build-depends: base, time
test-suite test-branching
import: testing
type: exitcode-stdio-1.0
main-is: test-branching.hs
executable common-types
import: example
main-is: common-types.hs
build-depends: base
test-suite test-common-types
import: testing
type: exitcode-stdio-1.0
main-is: test-common-types.hs
executable crypto-hashing
import: example
main-is: crypto-hashing.hs
build-depends: base, bytestring,
cryptonite, memory, utf8-string
test-suite test-crypto-hashing
import: testing
type: exitcode-stdio-1.0
main-is: test-bounded-queues.hs
executable dynamic
import: example
main-is: dynamic.hs
build-depends: base
test-suite test-dynamic
import: testing
type: exitcode-stdio-1.0
main-is: test-dynamic.hs
executable enum-ranges
import: example
main-is: enum-ranges.hs
build-depends: base
test-suite test-enum-ranges
import: testing
type: exitcode-stdio-1.0
main-is: test-enum-ranges.hs
executable file-handles
import: example
main-is: file-handles.hs
build-depends: base, directory
test-suite test-file-handles
import: testing
type: exitcode-stdio-1.0
main-is: test-file-handles.hs
executable folding-lists
import: example
main-is: folding-lists.hs
build-depends: base
test-suite test-folding-lists
import: testing
type: exitcode-stdio-1.0
main-is: test-folding-lists.hs
executable for-loops
import: example
main-is: for-loops.hs
build-depends: base
test-suite test-for-loops
import: testing
type: exitcode-stdio-1.0
main-is: test-for-loops.hs
executable functions
import: example
main-is: functions.hs
build-depends: base
test-suite test-functions
import: testing
type: exitcode-stdio-1.0
main-is: test-functions.hs
executable guard
import: example
main-is: guard.hs
build-depends: base
test-suite test-guard
import: testing
type: exitcode-stdio-1.0
main-is: test-guard.hs
executable hashing
import: example
main-is: hashing.hs
build-depends: base, hashable
test-suite test-hashing
import: testing
type: exitcode-stdio-1.0
main-is: test-hashing.hs
executable hello-world
import: example
main-is: hello-world.hs
build-depends: base
test-suite test-hello-world
import: testing
type: exitcode-stdio-1.0
main-is: test-hello-world.hs
executable if-else
import: example
main-is: if-else.hs
build-depends: base
test-suite test-if-else
import: testing
type: exitcode-stdio-1.0
main-is: test-if-else.hs
executable invert
import: example
main-is: invert.hs
build-depends: base, containers, generic-deriving
test-suite test-invert
import: testing
type: exitcode-stdio-1.0
main-is: test-invert.hs
executable logging
import: example
main-is: logging.hs
build-depends: base, directory, safe-exceptions
test-suite test-logging
import: testing
type: exitcode-stdio-1.0
main-is: test-logging.hs
executable moments-in-time
import: example
main-is: moments-in-time.hs
build-depends: base, time
test-suite test-moments-in-time
import: testing
type: exitcode-stdio-1.0
main-is: test-moments-in-time.hs
executable monitoring
import: example
main-is: monitoring.hs
build-depends: async, base, bytestring, containers,
network, process, safe-exceptions, signal, stm
test-suite test-monitoring
import: testing
type: exitcode-stdio-1.0
main-is: test-monitoring.hs
executable mutable-references
import: example
main-is: mutable-references.hs
build-depends: base, stm
test-suite test-mutable-references
import: testing
type: exitcode-stdio-1.0
main-is: test-mutable-references.hs
executable partial-application
import: example
main-is: partial-application.hs
build-depends: base
test-suite test-partial-application
import: testing
type: exitcode-stdio-1.0
main-is: test-partial-application.hs
executable records-with-optics
import: example
main-is: records-with-optics.hs
build-depends: base, optics
test-suite test-records-with-optics
import: testing
type: exitcode-stdio-1.0
main-is: test-records-with-optics.hs
executable threads
import: example
main-is: threads.hs
build-depends: base, stm
test-suite test-threads
import: testing
type: exitcode-stdio-1.0
main-is: test-threads.hs
executable timeouts
import: example
main-is: timeouts.hs
build-depends: base, stm
test-suite test-timeouts
import: testing
type: exitcode-stdio-1.0
main-is: test-timeouts.hs
executable transactions
import: example
main-is: transactions.hs
build-depends: base, containers, mwc-random, stm
test-suite test-transactions
import: testing
type: exitcode-stdio-1.0
main-is: test-transactions.hs
executable variables
import: example
main-is: variables.hs
build-depends: base
test-suite test-variables
import: testing
type: exitcode-stdio-1.0
main-is: test-variables.hs