Skip to content

Commit c4d80ae

Browse files
committed
Added upper bounds on all cabal files; updated KHPRFTests for MonadRandom-0.5
1 parent 04fb0db commit c4d80ae

File tree

8 files changed

+173
-186
lines changed

8 files changed

+173
-186
lines changed

lol-apps/lol-apps.cabal

Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,16 @@ library
6666

6767
build-depends:
6868
base >= 4.9 && < 5,
69-
containers,
70-
deepseq >= 1.4.1.1,
71-
lol >= 0.6.0.0,
72-
MonadRandom >= 0.2,
73-
mtl,
74-
numeric-prelude >= 0.4.2,
75-
protocol-buffers,
76-
protocol-buffers-descriptor,
77-
singletons,
78-
split
69+
containers < 0.6,
70+
deepseq >= 1.4.1.1 && < 1.5,
71+
lol >= 0.6.0.0 && < 0.7,
72+
MonadRandom >= 0.2 && < 0.6,
73+
mtl < 2.3,
74+
numeric-prelude >= 0.4.2 && < 0.5,
75+
protocol-buffers < 2.5,
76+
protocol-buffers-descriptor < 2.5,
77+
singletons < 2.3,
78+
split < 0.3
7979

8080
test-suite test-apps
8181
type: exitcode-stdio-1.0
@@ -88,26 +88,26 @@ test-suite test-apps
8888
ghc-options: -threaded -rtsopts
8989

9090
build-depends:
91-
arithmoi,
91+
arithmoi < 0.5,
9292
base >= 4.9 && < 5,
93-
constraints,
94-
deepseq,
95-
DRBG,
96-
lol >= 0.6.0.0,
93+
constraints < 0.10,
94+
deepseq < 1.5,
95+
DRBG < 0.6,
96+
lol >= 0.6.0.0 && < 0.7,
9797
lol-apps,
98-
lol-cpp,
99-
lol-repa,
100-
lol-tests,
101-
MonadRandom,
102-
mtl,
103-
numeric-prelude,
104-
QuickCheck >= 2.8,
105-
random,
106-
repa,
107-
singletons,
108-
test-framework >= 0.8,
109-
test-framework-quickcheck2 >= 0.3,
110-
vector
98+
lol-cpp < 0.1,
99+
lol-repa < 0.1,
100+
lol-tests < 0.1,
101+
MonadRandom < 0.6,
102+
mtl < 2.3,
103+
numeric-prelude < 0.5,
104+
QuickCheck >= 2.8 && < 3.0,
105+
random < 1.2,
106+
-- repa < 3.5,
107+
singletons < 2.3,
108+
test-framework >= 0.8 && < 0.9,
109+
test-framework-quickcheck2 >= 0.3 && < 0.4,
110+
vector < 0.13
111111

112112
Benchmark bench-apps
113113
type: exitcode-stdio-1.0
@@ -124,24 +124,24 @@ Benchmark bench-apps
124124
-- ghc-options: -fno-liberate-case -funfolding-use-threshold1000 -funfolding-keeness-factor1000
125125

126126
build-depends:
127-
arithmoi,
127+
arithmoi < 0.5,
128128
base >= 4.9 && < 5,
129-
containers,
130-
criterion,
131-
deepseq,
132-
DRBG,
133-
lol >= 0.6.0.0,
129+
containers < 0.6,
130+
criterion < 1.2,
131+
deepseq < 1.5,
132+
DRBG < 0.6,
133+
lol >= 0.6.0.0 && < 0.7,
134134
lol-apps,
135-
lol-benches,
136-
lol-cpp,
137-
lol-repa,
138-
MonadRandom,
139-
mtl,
140-
numeric-prelude,
141-
singletons,
142-
transformers,
143-
vector,
144-
repa
135+
lol-benches >= 0.0.0.3 && < 0.1,
136+
lol-cpp < 0.1,
137+
lol-repa < 0.1,
138+
MonadRandom < 0.6,
139+
mtl < 2.3,
140+
numeric-prelude < 0.5,
141+
singletons < 2.3,
142+
transformers < 0.6,
143+
vector < 0.13,
144+
repa >=3.4 && < 3.5
145145

146146
executable homomprf
147147
hs-source-dirs: examples
@@ -153,19 +153,19 @@ executable homomprf
153153
ghc-options: -threaded -rtsopts
154154

155155
build-depends:
156-
arithmoi,
156+
arithmoi < 0.5,
157157
base >= 4.9 && < 5,
158-
deepseq,
159-
DRBG,
160-
filepath,
161-
lol >= 0.6.0.0,
158+
deepseq < 1.5,
159+
DRBG < 0.6,
160+
filepath < 1.5,
161+
lol >= 0.6.0.0 && < 0.7,
162162
lol-apps,
163-
lol-cpp,
164-
MonadRandom,
165-
mtl,
166-
numeric-prelude,
167-
singletons,
168-
time
163+
lol-cpp < 0.1,
164+
MonadRandom < 0.6,
165+
mtl < 2.3,
166+
numeric-prelude < 0.5,
167+
singletons < 2.3,
168+
time < 1.9
169169

170170
executable khprf
171171
hs-source-dirs: examples
@@ -176,15 +176,15 @@ executable khprf
176176
ghc-options: -threaded -rtsopts
177177

178178
build-depends:
179-
arithmoi,
179+
arithmoi < 0.5,
180180
base >= 4.9 && < 5,
181-
deepseq,
182-
lol >= 0.6.0.0,
181+
deepseq < 1.5,
182+
lol >= 0.6.0.0 && < 0.7,
183183
lol-apps,
184-
lol-cpp,
185-
MonadRandom,
186-
mtl,
187-
numeric-prelude
184+
lol-cpp < 0.1,
185+
MonadRandom < 0.6,
186+
mtl < 2.3,
187+
numeric-prelude < 0.5
188188

189189
executable symmshe
190190
hs-source-dirs: examples
@@ -195,10 +195,10 @@ executable symmshe
195195
ghc-options: -threaded -rtsopts
196196

197197
build-depends:
198-
arithmoi,
198+
arithmoi < 0.5,
199199
base >= 4.9 && < 5,
200-
lol >= 0.6.0.0,
200+
lol >= 0.6.0.0 && < 0.7,
201201
lol-apps,
202-
lol-cpp,
203-
MonadRandom,
204-
numeric-prelude
202+
lol-cpp < 0.1,
203+
MonadRandom < 0.6,
204+
numeric-prelude < 0.5

lol-apps/tests/KHPRFTests.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Tests for KeyHomomorphicPRF.
2222
module KHPRFTests (khprfTests) where
2323

2424
import Control.Applicative
25-
import Control.Monad.Random
25+
import Control.Monad.Random hiding (lift)
2626

2727
import Crypto.Lol
2828
import Crypto.Lol.Applications.KeyHomomorphicPRF

lol-benches/lol-benches.cabal

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,18 @@ library
4747
Crypto.Lol.Utils.PrettyPrint
4848

4949
build-depends:
50-
ansi-terminal,
50+
ansi-terminal < 0.7,
5151
base >= 4.9 && < 5,
52-
containers,
53-
criterion,
54-
crypto-api,
55-
deepseq,
56-
DRBG,
57-
lol >= 0.6.0.0,
58-
MonadRandom,
59-
split,
60-
statistics,
61-
transformers,
52+
containers < 0.6,
53+
criterion < 1.2,
54+
crypto-api < 0.14,
55+
deepseq < 1.5,
56+
DRBG < 0.6,
57+
lol >= 0.6.0.0 && < 0.7,
58+
MonadRandom < 0.6,
59+
split < 0.3,
60+
statistics < 0.14,
61+
transformers < 0.6,
6262
-- EAC: lol-benches does NOT depend on vector. However, cabal can't resolve
6363
-- dependencies without some help on the vector version. This is a bottleneck
6464
-- preventing us from putting lol-benches on stackage.

lol-cpp/lol-cpp.cabal

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -77,31 +77,30 @@ library
7777
Crypto.Lol.Cyclotomic.Tensor.CPP.Instances
7878

7979
build-depends:
80-
arithmoi >= 0.4.1.3,
80+
arithmoi >= 0.4.1.3 && < 0.5,
8181
base >= 4.9 && < 5,
82-
bytestring,
83-
constraints,
84-
containers >= 0.5.6.2,
85-
crypto-api,
86-
data-default >= 0.3.0,
87-
deepseq >= 1.4.1.1,
88-
lol >= 0.6.0.0,
89-
monadcryptorandom,
90-
MonadRandom >= 0.2,
91-
mtl >= 2.2.1,
92-
numeric-prelude >= 0.4.2,
93-
protocol-buffers,
94-
protocol-buffers-descriptor,
95-
random >= 1.1,
96-
reflection >= 1.5.1,
97-
repa>=3.4,
98-
singletons >= 1.1.2.1,
99-
th-desugar >= 1.5.4,
100-
tagged-transformer >= 0.7,
101-
template-haskell >= 2.2.0.0,
102-
transformers >= 0.4.2.0,
103-
vector>=0.11,
104-
vector-th-unbox >= 0.2.1.0
82+
bytestring < 0.11,
83+
constraints < 0.10,
84+
containers >= 0.5.6.2 && < 0.6,
85+
crypto-api < 0.14,
86+
data-default >= 0.3.0 && < 0.8,
87+
deepseq >= 1.4.1.1 && < 1.5,
88+
lol >= 0.6.0.0 && < 0.7,
89+
monadcryptorandom < 0.8,
90+
MonadRandom >= 0.2 && < 0.6,
91+
mtl >= 2.2.1 && < 2.3,
92+
numeric-prelude >= 0.4.2 && < 0.5,
93+
protocol-buffers < 2.5,
94+
protocol-buffers-descriptor < 2.5,
95+
random >= 1.1 && < 1.2,
96+
reflection >= 1.5.1 && < 2.2,
97+
singletons >= 1.1.2.1 && < 2.3,
98+
th-desugar >= 1.5.4 && < 1.7,
99+
tagged-transformer >= 0.7 && < 0.9,
100+
template-haskell >= 2.2.0.0 && < 2.12,
101+
transformers >= 0.4.2.0 && < 0.6,
102+
vector>=0.11 && < 0.13,
103+
vector-th-unbox >= 0.2.1.0 && < 0.3
105104

106105
other-extensions: TemplateHaskell
107106

@@ -116,9 +115,9 @@ Benchmark bench-lol-cpp
116115

117116
build-depends:
118117
base >= 4.9 && < 5,
119-
DRBG,
120-
lol >= 0.6.0.0,
121-
lol-benches,
118+
DRBG < 0.6,
119+
lol >= 0.6.0.0 && < 0.7,
120+
lol-benches >= 0.0.0.3 && < 0.1,
122121
lol-cpp
123122

124123
test-suite test-lol-cpp
@@ -132,4 +131,4 @@ test-suite test-lol-cpp
132131
build-depends:
133132
base >= 4.9 && < 5,
134133
lol-cpp,
135-
lol-tests
134+
lol-tests < 0.1

lol-repa/lol-repa.cabal

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -63,31 +63,31 @@ library
6363
Crypto.Lol.Cyclotomic.Tensor.Repa.RTCommon
6464

6565
build-depends:
66-
arithmoi >= 0.4.1.3,
66+
arithmoi >= 0.4.1.3 && < 0.5,
6767
base >= 4.9 && < 5,
68-
bytestring,
69-
constraints,
70-
containers >= 0.5.6.2,
71-
crypto-api,
72-
data-default >= 0.3.0,
73-
deepseq >= 1.4.1.1,
74-
lol >= 0.6.0.0,
75-
monadcryptorandom,
76-
MonadRandom >= 0.2,
77-
mtl >= 2.2.1,
78-
numeric-prelude >= 0.4.2,
79-
protocol-buffers,
80-
protocol-buffers-descriptor,
81-
random >= 1.1,
82-
reflection >= 1.5.1,
83-
repa>=3.4,
84-
singletons >= 1.1.2.1,
85-
th-desugar >= 1.5.4,
86-
tagged-transformer >= 0.7,
87-
template-haskell >= 2.2.0.0,
88-
transformers >= 0.4.2.0,
89-
vector>=0.11,
90-
vector-th-unbox >= 0.2.1.0
68+
bytestring < 0.11,
69+
constraints < 0.10,
70+
containers >= 0.5.6.2 && < 0.6,
71+
crypto-api < 0.14,
72+
data-default >= 0.3.0 && < 0.8,
73+
deepseq >= 1.4.1.1 && < 1.5,
74+
lol >= 0.6.0.0 && < 0.7,
75+
monadcryptorandom < 0.8,
76+
MonadRandom >= 0.2 && < 0.6,
77+
mtl >= 2.2.1 && < 2.3,
78+
numeric-prelude >= 0.4.2 && < 0.5,
79+
protocol-buffers < 2.5,
80+
protocol-buffers-descriptor < 2.5,
81+
random >= 1.1 && < 1.2,
82+
reflection >= 1.5.1 && < 2.2,
83+
repa >=3.4 && < 3.5,
84+
singletons >= 1.1.2.1 && < 2.3,
85+
th-desugar >= 1.5.4 && < 1.7,
86+
tagged-transformer >= 0.7 && < 0.9,
87+
template-haskell >= 2.2.0.0 && < 2.12,
88+
transformers >= 0.4.2.0 && < 0.6,
89+
vector>=0.11 && < 0.13,
90+
vector-th-unbox >= 0.2.1.0 && < 0.3
9191

9292
other-extensions: TemplateHaskell
9393

@@ -99,13 +99,13 @@ Benchmark bench-lol-repa
9999
hs-source-dirs: benchmarks
100100

101101
ghc-options: -O2 -funfolding-creation-threshold=15000 -funfolding-use-threshold=1000
102-
ghc-options: -fsimpl-tick-factor=110
102+
ghc-options: -fsimpl-tick-factor=115
103103

104104
build-depends:
105105
base >= 4.9 && < 5,
106-
DRBG,
107-
lol >= 0.6.0.0,
108-
lol-benches,
106+
DRBG < 0.6,
107+
lol >= 0.6.0.0 && < 0.7,
108+
lol-benches >= 0.0.0.3 && < 0.1,
109109
lol-repa
110110

111111
test-suite test-lol-repa
@@ -119,4 +119,4 @@ test-suite test-lol-repa
119119
build-depends:
120120
base >= 4.9 && < 5,
121121
lol-repa,
122-
lol-tests
122+
lol-tests < 0.1

0 commit comments

Comments
 (0)