Skip to content

Commit 737ad61

Browse files
committed
Hack around problems with old GHCs; please review
1 parent 45c25ef commit 737ad61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hackage-security/hackage-security.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ library
154154
else
155155
build-depends: base >= 4.10
156156

157-
if flag(Cabal-syntax)
157+
if flag(Cabal-syntax) && impl(ghc >= 8.2)
158158
build-depends: Cabal-syntax >= 3.7 && < 3.10
159159
else
160160
build-depends: Cabal >= 1.14 && < 1.26
@@ -271,7 +271,7 @@ test-suite TestSuite
271271
time,
272272
zlib
273273

274-
if flag(Cabal-syntax)
274+
if flag(Cabal-syntax) && impl(ghc >= 8.2)
275275
build-depends: Cabal >= 3.7 && < 3.10,
276276
Cabal-syntax >= 3.7 && < 3.10
277277
else

0 commit comments

Comments
 (0)