forked from hakaru-dev/hakaru
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hakaru.cabal
515 lines (474 loc) · 23.7 KB
/
hakaru.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
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
-- To understand this, see http://haskell.org/cabal/users-guide/
cabal-version: >=1.16
build-type: Simple
name: hakaru
version: 0.6.0
synopsis: A probabilistic programming language
description: Hakaru is a simply-typed probabilistic programming language, designed
for easy specification of probabilistic models, and inference algorithms.
homepage: http://hakaru-dev.github.io/
license: BSD3
license-file: LICENSE
author: The Hakaru Team
maintainer: [email protected]
-- copyright:
category: Language
-- extra-source-files:
----------------------------------------------------------------
Source-Repository head
Type: git
Location: https://github.com/hakaru-dev/hakaru
----------------------------------------------------------------
Flag traceDisintegrate
Default: False
Description: Insert tracing code to help debug disintegration.
----------------------------------------------------------------
Library
Hs-Source-Dirs: haskell
Default-Language: Haskell2010
GHC-Options: -Wall -fwarn-tabs -j6
if flag(traceDisintegrate)
Cpp-Options: -D__TRACE_DISINTEGRATE__
exposed-modules: Language.Hakaru.Syntax.IClasses,
Language.Hakaru.Syntax.ABT,
Language.Hakaru.Syntax.Variable,
Language.Hakaru.Syntax.Value,
Language.Hakaru.Syntax.Reducer,
Language.Hakaru.Syntax.Datum,
Language.Hakaru.Syntax.DatumABT,
Language.Hakaru.Syntax.DatumCase,
Language.Hakaru.Types.DataKind,
Language.Hakaru.Types.Sing,
Language.Hakaru.Types.HClasses,
Language.Hakaru.Types.Coercion,
Language.Hakaru.Syntax.ANF,
Language.Hakaru.Syntax.AST,
Language.Hakaru.Syntax.AST.Eq,
Language.Hakaru.Syntax.AST.Sing,
Language.Hakaru.Syntax.AST.Transforms,
Language.Hakaru.Syntax.CSE,
Language.Hakaru.Syntax.Gensym,
Language.Hakaru.Syntax.Hoist,
Language.Hakaru.Syntax.Prelude,
Language.Hakaru.Syntax.Prune,
Language.Hakaru.Syntax.Rename,
Language.Hakaru.Syntax.SArgs,
Language.Hakaru.Syntax.Transform,
Language.Hakaru.Syntax.TypeCheck,
Language.Hakaru.Syntax.TypeCheck.TypeCheckMonad,
Language.Hakaru.Syntax.TypeCheck.Unification,
Language.Hakaru.Syntax.TypeOf,
Language.Hakaru.Syntax.Uniquify,
Language.Hakaru.Syntax.Unroll,
Language.Hakaru.Parser.AST,
Language.Hakaru.Parser.Maple,
Language.Hakaru.Parser.Import,
Language.Hakaru.Parser.Parser,
Language.Hakaru.Parser.SymbolResolve,
Language.Hakaru.Pretty.Haskell,
Language.Hakaru.Pretty.SExpression,
Language.Hakaru.Pretty.Concrete,
Language.Hakaru.Pretty.Maple,
Language.Hakaru.Runtime.Prelude,
Language.Hakaru.Runtime.LogFloatPrelude,
Language.Hakaru.Runtime.CmdLine,
Language.Hakaru.Observe,
Language.Hakaru.Maple,
Language.Hakaru.Simplify,
Language.Hakaru.Summary,
Language.Hakaru.Sample,
Language.Hakaru.Evaluation.Types,
Language.Hakaru.Evaluation.Lazy,
Language.Hakaru.Evaluation.PEvalMonad,
Language.Hakaru.Evaluation.EvalMonad
Language.Hakaru.Evaluation.ConstantPropagation,
Language.Hakaru.Evaluation.DisintegrationMonad,
Language.Hakaru.Evaluation.Coalesce,
Language.Hakaru.Disintegrate,
Language.Hakaru.Evaluation.ExpectMonad,
Language.Hakaru.Expect,
Language.Hakaru.Inference,
Language.Hakaru.Command,
Language.Hakaru.CodeGen.Wrapper,
Language.Hakaru.CodeGen.Flatten,
Language.Hakaru.CodeGen.CodeGenMonad,
Language.Hakaru.CodeGen.Types,
Language.Hakaru.CodeGen.AST,
Language.Hakaru.CodeGen.Pretty,
Language.Hakaru.CodeGen.Libs,
Data.Number.Nat,
Data.Number.Natural
Data.Text.Utf8
other-modules: System.MapleSSH
build-depends: base >= 4.7 && < 5.0,
Cabal >= 1.16,
ghc-prim >= 0.3 && < 0.6,
transformers >= 0.3 && < 0.6,
transformers-compat >= 0.3 && < 0.6,
containers >= 0.5 && < 0.6,
semigroups >= 0.16,
pretty >= 1.1 && < 1.2,
logfloat >= 0.13 && < 0.14,
math-functions >= 0.1 && < 0.3,
vector >= 0.10,
indentation-parsec >= 0.0,
text >= 0.11 && < 1.3,
parsec >= 3.1 && < 3.2,
mwc-random >= 0.13 && < 0.14,
directory >= 1.2 && < 1.4,
integration >= 0.2.0 && < 0.3.0,
primitive >= 0.5 && < 0.7,
process >= 1.1 && < 2.0,
HUnit >= 1.2 && < 2.0,
mtl >= 2.1,
filepath >= 1.1.0.2,
bytestring >= 0.9,
optparse-applicative >= 0.11 && < 0.15,
syb >= 0.6
----------------------------------------------------------------
Test-Suite system-testsuite
Type: exitcode-stdio-1.0
Main-is: Tests/TestSuite.hs
Hs-Source-Dirs: haskell
Default-Language: Haskell2010
GHC-Options: -Wall -fwarn-tabs
other-modules: Data.Number.Nat
Data.Number.Natural
Data.Text.Utf8
Language.Hakaru.Command
Language.Hakaru.Disintegrate
Language.Hakaru.Evaluation.Coalesce
Language.Hakaru.Evaluation.ConstantPropagation
Language.Hakaru.Evaluation.DisintegrationMonad
Language.Hakaru.Evaluation.EvalMonad
Language.Hakaru.Evaluation.ExpectMonad
Language.Hakaru.Evaluation.Lazy
Language.Hakaru.Evaluation.PEvalMonad
Language.Hakaru.Evaluation.Types
Language.Hakaru.Expect
Language.Hakaru.Inference
Language.Hakaru.Maple
Language.Hakaru.Parser.AST
Language.Hakaru.Parser.Import
Language.Hakaru.Parser.Maple
Language.Hakaru.Parser.Parser
Language.Hakaru.Parser.SymbolResolve
Language.Hakaru.Pretty.Concrete
Language.Hakaru.Pretty.Haskell
Language.Hakaru.Pretty.Maple
Language.Hakaru.Sample
Language.Hakaru.Simplify
Language.Hakaru.Syntax.ABT
Language.Hakaru.Syntax.ANF
Language.Hakaru.Syntax.AST
Language.Hakaru.Syntax.AST.Eq
Language.Hakaru.Syntax.AST.Transforms
Language.Hakaru.Syntax.AST.Sing
Language.Hakaru.Syntax.CSE
Language.Hakaru.Syntax.Datum
Language.Hakaru.Syntax.DatumABT
Language.Hakaru.Syntax.DatumCase
Language.Hakaru.Syntax.Gensym
Language.Hakaru.Syntax.Hoist
Language.Hakaru.Syntax.IClasses
Language.Hakaru.Syntax.Prelude
Language.Hakaru.Syntax.Prune
Language.Hakaru.Syntax.Reducer
Language.Hakaru.Syntax.SArgs
Language.Hakaru.Syntax.Transform
Language.Hakaru.Syntax.TypeCheck
Language.Hakaru.Syntax.TypeCheck.TypeCheckMonad
Language.Hakaru.Syntax.TypeCheck.Unification
Language.Hakaru.Syntax.TypeOf
Language.Hakaru.Syntax.Uniquify
Language.Hakaru.Syntax.Unroll
Language.Hakaru.Syntax.Value
Language.Hakaru.Syntax.Variable
Language.Hakaru.Types.Coercion
Language.Hakaru.Types.DataKind
Language.Hakaru.Types.HClasses
Language.Hakaru.Types.Sing
System.MapleSSH
Tests.ASTTransforms
Tests.Disintegrate
Tests.Models
Tests.Parser
Tests.Pretty
Tests.Relationships
Tests.RoundTrip
Tests.Sample
Tests.Simplify
Tests.TestTools
Tests.TypeCheck
Build-Depends: base >= 4.6 && < 5.0,
Cabal >= 1.16,
ghc-prim >= 0.3 && < 0.6,
indentation-parsec >= 0.0,
transformers >= 0.3 && < 0.6,
containers >= 0.5 && < 0.6,
semigroups >= 0.16,
logfloat >= 0.13 && < 0.14,
parsec >= 3.1 && < 3.2,
primitive >= 0.5 && < 0.7,
pretty >= 1.1 && < 1.2,
mwc-random >= 0.13 && < 0.14,
math-functions >= 0.1 && < 0.3,
integration >= 0.2 && < 0.3,
HUnit >= 1.2 && < 2.0,
QuickCheck >= 2.6,
process >= 1.1 && < 2.0,
mtl >= 2.1,
vector >= 0.10,
text >= 0.11 && < 1.3,
bytestring >= 0.9,
directory >= 1.2 && < 1.4,
optparse-applicative >= 0.11 && < 0.15,
syb >= 0.6,
filepath >= 1.1.0.2
----------------------------------------------------------------
Test-Suite relationships-testsuite
Type: exitcode-stdio-1.0
Main-is: Tests/TestSuite.hs
Hs-Source-Dirs: haskell
Default-Language: Haskell2010
GHC-Options: -Wall -fwarn-tabs -main-is justRelationships
other-modules: Data.Number.Nat
Data.Number.Natural
Data.Text.Utf8
Language.Hakaru.Command
Language.Hakaru.Disintegrate
Language.Hakaru.Evaluation.Coalesce
Language.Hakaru.Evaluation.ConstantPropagation
Language.Hakaru.Evaluation.DisintegrationMonad
Language.Hakaru.Evaluation.EvalMonad
Language.Hakaru.Evaluation.ExpectMonad
Language.Hakaru.Evaluation.Lazy
Language.Hakaru.Evaluation.PEvalMonad
Language.Hakaru.Evaluation.Types
Language.Hakaru.Expect
Language.Hakaru.Inference
Language.Hakaru.Maple
Language.Hakaru.Parser.AST
Language.Hakaru.Parser.Import
Language.Hakaru.Parser.Maple
Language.Hakaru.Parser.Parser
Language.Hakaru.Parser.SymbolResolve
Language.Hakaru.Pretty.Concrete
Language.Hakaru.Pretty.Haskell
Language.Hakaru.Pretty.Maple
Language.Hakaru.Sample
Language.Hakaru.Simplify
Language.Hakaru.Syntax.ABT
Language.Hakaru.Syntax.ANF
Language.Hakaru.Syntax.AST
Language.Hakaru.Syntax.AST.Eq
Language.Hakaru.Syntax.AST.Sing
Language.Hakaru.Syntax.AST.Transforms
Language.Hakaru.Syntax.CSE
Language.Hakaru.Syntax.Datum
Language.Hakaru.Syntax.DatumABT
Language.Hakaru.Syntax.DatumCase
Language.Hakaru.Syntax.Gensym
Language.Hakaru.Syntax.Hoist
Language.Hakaru.Syntax.IClasses
Language.Hakaru.Syntax.Prelude
Language.Hakaru.Syntax.Prune
Language.Hakaru.Syntax.Reducer
Language.Hakaru.Syntax.SArgs
Language.Hakaru.Syntax.Transform
Language.Hakaru.Syntax.TypeCheck
Language.Hakaru.Syntax.TypeCheck.TypeCheckMonad
Language.Hakaru.Syntax.TypeCheck.Unification
Language.Hakaru.Syntax.TypeOf
Language.Hakaru.Syntax.Uniquify
Language.Hakaru.Syntax.Unroll
Language.Hakaru.Syntax.Value
Language.Hakaru.Syntax.Variable
Language.Hakaru.Types.Coercion
Language.Hakaru.Types.DataKind
Language.Hakaru.Types.HClasses
Language.Hakaru.Types.Sing
System.MapleSSH
Tests.ASTTransforms
Tests.Disintegrate
Tests.Models
Tests.Parser
Tests.Pretty
Tests.Relationships
Tests.RoundTrip
Tests.Sample
Tests.Simplify
Tests.TestTools
Tests.TypeCheck
Build-Depends: base >= 4.6 && < 5.0,
Cabal >= 1.16,
ghc-prim >= 0.3 && < 0.6,
indentation-parsec >= 0.0,
transformers >= 0.3 && < 0.6,
containers >= 0.5 && < 0.6,
semigroups >= 0.16,
logfloat >= 0.13 && < 0.14,
parsec >= 3.1 && < 3.2,
primitive >= 0.5 && < 0.7,
pretty >= 1.1 && < 1.2,
mwc-random >= 0.13 && < 0.14,
math-functions >= 0.1 && < 0.3,
integration >= 0.2 && < 0.3,
HUnit >= 1.2 && < 2.0,
QuickCheck >= 2.6,
process >= 1.1 && < 2.0,
mtl >= 2.1,
vector >= 0.10,
text >= 0.11 && < 1.3,
bytestring >= 0.9,
directory >= 1.2 && < 1.4,
optparse-applicative >= 0.11 && < 0.15,
syb >= 0.6,
filepath >= 1.1.0.2
----------------------------------------------------------------
Executable hakaru
Main-is: Hakaru.hs
Hs-Source-Dirs: commands
Default-Language: Haskell2010
GHC-Options: -O2 -Wall -fwarn-tabs
build-depends: base >= 4.7 && < 5.0,
mwc-random >= 0.13 && < 0.14,
text >= 0.11 && < 1.3,
pretty >= 1.1 && < 1.2,
vector >= 0.10,
optparse-applicative >= 0.11 && < 0.15,
hakaru >= 0.3
----------------------------------------------------------------
Executable compile
Main-is: Compile.hs
Hs-Source-Dirs: commands
Default-Language: Haskell2010
GHC-Options: -O2 -Wall -fwarn-tabs
build-depends: base >= 4.7 && < 5.0,
mwc-random >= 0.13 && < 0.14,
text >= 0.11 && < 1.3,
pretty >= 1.1 && < 1.2,
filepath >= 1.3,
optparse-applicative >= 0.11 && < 0.15,
hakaru >= 0.3
----------------------------------------------------------------
Executable summary
Main-is: Summary.hs
Hs-Source-Dirs: commands
Default-Language: Haskell2010
GHC-Options: -O2 -Wall -fwarn-tabs
build-depends: base >= 4.7 && < 5.0,
mwc-random >= 0.13 && < 0.14,
text >= 0.11 && < 1.3,
pretty >= 1.1 && < 1.2,
filepath >= 1.3,
optparse-applicative >= 0.11 && < 0.15,
hakaru >= 0.3
----------------------------------------------------------------
Executable hk-maple
Main-is: HkMaple.hs
Hs-Source-Dirs: commands
Default-Language: Haskell2010
GHC-Options: -O2 -Wall -fwarn-tabs
build-depends: base >= 4.7 && < 5.0,
mwc-random >= 0.13 && < 0.14,
text >= 0.11 && < 1.3,
pretty >= 1.1 && < 1.2,
optparse-applicative >= 0.13 && < 0.15,
containers >= 0.5 && < 0.6,
hakaru >= 0.3
----------------------------------------------------------------
Executable density
Main-is: Density.hs
Hs-Source-Dirs: commands
Default-Language: Haskell2010
GHC-Options: -O2 -Wall -fwarn-tabs
build-depends: base >= 4.7 && < 5.0,
mwc-random >= 0.13 && < 0.14,
text >= 0.11 && < 1.3,
pretty >= 1.1 && < 1.2,
hakaru >= 0.3
----------------------------------------------------------------
Executable disintegrate
Main-is: Disintegrate.hs
Hs-Source-Dirs: commands
Default-Language: Haskell2010
GHC-Options: -O2 -Wall -fwarn-tabs
build-depends: base >= 4.7 && < 5.0,
mwc-random >= 0.13 && < 0.14,
text >= 0.11 && < 1.3,
pretty >= 1.1 && < 1.2,
optparse-applicative >= 0.11 && < 0.15,
hakaru >= 0.3
----------------------------------------------------------------
Executable pretty
Main-is: Pretty.hs
Hs-Source-Dirs: commands
Default-Language: Haskell2010
GHC-Options: -O2 -Wall -fwarn-tabs
build-depends: base >= 4.7 && < 5.0,
text >= 0.11 && < 1.3,
pretty >= 1.1 && < 1.2,
optparse-applicative >= 0.11 && < 0.15,
hakaru >= 0.3
----------------------------------------------------------------
Executable prettyinternal
Main-is: PrettyInternal.hs
Hs-Source-Dirs: commands
Default-Language: Haskell2010
GHC-Options: -O2 -Wall -fwarn-tabs
build-depends: base >= 4.7 && < 5.0,
text >= 0.11 && < 1.3,
pretty >= 1.1 && < 1.2,
optparse-applicative >= 0.11 && < 0.15,
hakaru >= 0.3
----------------------------------------------------------------
Executable momiji
Main-is: Momiji.hs
Hs-Source-Dirs: commands
Default-Language: Haskell2010
GHC-Options: -O2 -Wall -fwarn-tabs
build-depends: base >= 4.7 && < 5.0,
text >= 0.11 && < 1.3,
hakaru >= 0.3
----------------------------------------------------------------
Executable normalize
Main-is: Normalize.hs
Hs-Source-Dirs: commands
Default-Language: Haskell2010
GHC-Options: -O2 -Wall -fwarn-tabs
build-depends: base >= 4.7 && < 5.0,
mwc-random >= 0.13 && < 0.14,
text >= 0.11 && < 1.3,
mtl >= 2.1,
pretty >= 1.1 && < 1.2,
hakaru >= 0.3
----------------------------------------------------------------
Executable hkc
Main-is: HKC.hs
Hs-Source-Dirs: commands
Default-Language: Haskell2010
GHC-Options: -O2 -Wall -fwarn-tabs
build-depends: base >= 4.7 && < 5.0,
containers >= 0.5 && < 0.6,
text >= 0.11 && < 1.3,
mtl >= 2.1,
optparse-applicative >= 0.11 && < 0.15,
pretty >= 1.1 && < 1.2,
process >= 1.1 && < 2.0,
semigroups >= 0.16,
hakaru >= 0.3
----------------------------------------------------------------
Executable mh
Main-is: Mh.hs
Hs-Source-Dirs: commands
Default-Language: Haskell2010
GHC-Options: -O2 -Wall -fwarn-tabs
build-depends: base >= 4.7 && < 5.0,
mwc-random >= 0.13 && < 0.14,
text >= 0.11 && < 1.3,
mtl >= 2.1,
pretty >= 1.1 && < 1.2,
hakaru >= 0.3
----------------------------------------------------------------
----------------------------------------------------------- fin.