-
Notifications
You must be signed in to change notification settings - Fork 1
/
MultiChor.cabal
238 lines (227 loc) · 6.29 KB
/
MultiChor.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
cabal-version: 3.0
name: MultiChor
version: 1.0.1.1
license-files:
, LICENSE
, LICENSE.inherited
license: BSD-3-Clause
maintainer: [email protected]
category: Distributed-Computing
synopsis: Type-safe and efficient choreographies with location-set polymorphism.
description:
MultiChor is a library for functional choreographic programming in Haskell.
tested-with:
GHC == 9.4.8, GHC == 9.10.1
extra-doc-files:
README.md
source-repository head
type: git
location: https://github.com/ShapeOfMatter/MultiChor
common basic-config
default-language: GHC2021
build-depends:
, base >= 4.16 && < 5
, bytestring >= 0.11 && < 0.13
, http-client >= 0.7 && < 0.8
, mtl >= 2.2.2 && < 3.0
, servant >= 0.19 && < 0.21
, servant-client >= 0.19 && < 0.21
, servant-server >= 0.19 && < 0.21
, template-haskell >= 2.18 && < 2.23
, unordered-containers >= 0.2 && < 0.3
, warp >= 3.3 && < 3.4
ghc-options:
-Wall
-Wno-incomplete-uni-patterns
-fprint-potential-instances
-haddock
-Winvalid-haddock
default-extensions: BlockArguments
,DataKinds
,ExplicitNamespaces
,FunctionalDependencies
,GADTs
,ImpredicativeTypes
,LambdaCase
,LiberalTypeSynonyms
,TypeFamilies
library
import: basic-config
hs-source-dirs: src
exposed-modules:
Choreography
Choreography.Choreography
Choreography.Choreography.Batteries
Choreography.Core
Choreography.Locations
Choreography.Locations.Batteries
Choreography.Network
Choreography.Network.Http
Choreography.Network.Local
Choreography.Polymorphism
Control.Monad.Freer
common lib-dependent
import: basic-config
build-depends: MultiChor
Flag test
Description: Enable debug support
Default: False
Manual: True
common example
import: lib-dependent
if flag(test)
buildable: True
hs-source-dirs: examples
build-depends:
, async >= 2.2 && < 2.3
, binary >= 0.8.9.0 && < 0.10.1.0
-- trying to get hls to work with TestSuite
, Cabal >= 3.6.3 && < 3.13
--, cabal-detailed-quickcheck >= 0.2.0 && < 0.3
--
, containers >= 0.6 && < 0.7
, cryptonite >= 0.10 && < 0.31
, finite-field >= 0.10.0 && < 0.11.0
, split >= 0.2 && < 0.3
, random >= 1.2 && < 1.3
, time >= 1.11 && < 1.15
, transformers >= 0.5 && < 0.7
, QuickCheck >= 2.14 && < 3
other-modules: Distribution.TestSuite.QuickCheck
, CLI
else
buildable: False
Test-Suite testExamples
import: example
type: detailed-0.9
test-module: Tests
other-modules: Data
, Bank2PC
, Bookseller0Network
, Bookseller1Simple
, Bookseller2HigherOrder
, Bookseller3LocPoly
, BooksellerFancy
, CardGame
, ChooseTeams
, DelegationFig20
, DiffieHellman
, GMWReal
, Karatsuba
, KVS1Simple
, KVS2PrimaryBackup
, KVS3HigherOrder
, KVS4LocPoly
, KVS5Fig17
, KVS6SizePoly
, KVS7SimplePoly
, Lottery
, MergeSort
, MPCFake
, ObliviousTransfer
, QuickSort
, RingLeader
--executable bank-2pc
-- import: example
-- main-is: Bank2PC.hs
-- ghc-options:
-- -main-is Bank2PC
--
--executable lottery
-- import: example
-- main-is: Lottery.hs
-- ghc-options:
-- -main-is Lottery
--
--
--executable bookseller-0-network
-- import: example
-- main-is: Bookseller0Network.hs
-- ghc-options:
-- -main-is Bookseller0Network
--
--executable bookseller-1-simple
-- import: example
-- main-is: Bookseller1Simple.hs
-- ghc-options:
-- -main-is Bookseller1Simple
--
--executable bookseller-2-higher-order
-- import: example
-- main-is: Bookseller2HigherOrder.hs
-- ghc-options:
-- -main-is Bookseller2HigherOrder
--
--executable bookseller-3-loc-poly
-- import: example
-- main-is: Bookseller3LocPoly.hs
-- ghc-options:
-- -main-is Bookseller3LocPoly
--
--executable diffiehellman
-- import: example
-- main-is: DiffieHellman.hs
-- ghc-options:
-- -main-is DiffieHellman
--
--executable gmw-real
-- import: example
-- main-is: GMWReal.hs
-- ghc-options:
-- -main-is GMWReal
-- other-modules:
-- ObliviousTransfer
--
--executable karatsuba
-- import: example
-- main-is: Karatsuba.hs
-- ghc-options:
-- -main-is Karatsuba
--
--executable kvs1
-- import: example
-- main-is: KVS1Simple.hs
-- ghc-options:
-- -main-is KVS1Simple
--
--executable kvs2
-- import: example
-- main-is: KVS2PrimaryBackup.hs
-- ghc-options:
-- -main-is KVS2PrimaryBackup
--
--executable kvs3
-- import: example
-- main-is: KVS3HigherOrder.hs
-- ghc-options:
-- -main-is KVS3HigherOrder
--
--executable kvs4
-- import: example
-- main-is: KVS4LocPoly.hs
-- ghc-options:
-- -main-is KVS4LocPoly
--
--executable mergesort
-- import: example
-- main-is: MergeSort.hs
-- ghc-options:
-- -main-is MergeSort
--
--executable oblivious-transfer
-- import: example
-- main-is: ObliviousTransfer.hs
-- ghc-options:
-- -main-is ObliviousTransfer
--
--executable quicksort
-- import: example
-- main-is: QuickSort.hs
-- ghc-options:
-- -main-is QuickSort
--
--executable ring-leader
-- import: example
-- main-is: RingLeader.hs
-- ghc-options:
-- -main-is RingLeader