Skip to content

Commit 6bd1ffe

Browse files
authored
Merge pull request #281 from Mikolaj/master
Fix compilation of hackage-security test suite with Cabal-syntax on Hackage and bump version of hackage-repo-tool before release
2 parents b966431 + 2336bc3 commit 6bd1ffe

File tree

4 files changed

+22
-8
lines changed

4 files changed

+22
-8
lines changed

hackage-repo-tool/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
0.1.1.3
2+
-------
3+
* Compat release for `Cabal-syntax-3.8.1.0`
4+
15
0.1.1.2
26
-------
37
* Compat release for `hackage-security-0.6`

hackage-repo-tool/hackage-repo-tool.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 1.12
22
name: hackage-repo-tool
3-
version: 0.1.1.2
3+
version: 0.1.1.3
44

55
build-type: Simple
66
synopsis: Manage secure file-based package repositories
@@ -90,7 +90,7 @@ executable hackage-repo-tool
9090
build-depends: network >= 2.5 && < 2.6
9191

9292
if flag(Cabal-syntax)
93-
build-depends: Cabal-syntax >= 3.7 && < 3.9
93+
build-depends: Cabal-syntax >= 3.7 && < 3.10
9494
else
9595
build-depends: Cabal >= 1.14 && < 1.26
9696
|| >= 2.0 && < 2.6

hackage-security/ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
See also http://pvp.haskell.org/faq
22

3+
0.6.2.2
4+
-------
5+
6+
* Fix broken compilation of test-suite with Cabal-syntax-3.8.1.0 on Hackage
7+
* Huge README updates
8+
39
0.6.2.1
410
-------
511

hackage-security/hackage-security.cabal

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
cabal-version: 1.12
22
name: hackage-security
3-
version: 0.6.2.1
4-
x-revision: 1
3+
version: 0.6.2.2
54

65
synopsis: Hackage security library
76
description: The hackage security library provides both server and
@@ -154,7 +153,7 @@ library
154153
else
155154
build-depends: base >= 4.10
156155

157-
if flag(Cabal-syntax)
156+
if flag(Cabal-syntax) && impl(ghc >= 8.2)
158157
build-depends: Cabal-syntax >= 3.7 && < 3.10
159158
else
160159
build-depends: Cabal >= 1.14 && < 1.26
@@ -263,7 +262,6 @@ test-suite TestSuite
263262
-- inherited constraints from lib:hackage-security component
264263
build-depends: hackage-security,
265264
base,
266-
Cabal,
267265
containers,
268266
bytestring,
269267
network-uri,
@@ -272,8 +270,14 @@ test-suite TestSuite
272270
time,
273271
zlib
274272

275-
if flag(Cabal-syntax)
276-
build-depends: Cabal-syntax
273+
if flag(Cabal-syntax) && impl(ghc >= 8.2)
274+
build-depends: Cabal >= 3.7 && < 3.10,
275+
Cabal-syntax >= 3.7 && < 3.10
276+
else
277+
build-depends: Cabal >= 1.14 && < 1.26
278+
|| >= 2.0 && < 2.6
279+
|| >= 3.0 && < 3.7,
280+
Cabal-syntax < 3.7
277281

278282
-- dependencies exclusive to test-suite
279283
build-depends: tasty >= 1.2 && < 1.5,

0 commit comments

Comments
 (0)