Skip to content

Commit cffce39

Browse files
committed
Add empty Cabal repository for GHC 9.6
1 parent 2f70166 commit cffce39

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

rules_haskell_tests/non_module_deps_2.bzl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,14 @@ haskell_cabal_binary(
125125
urls = ["http://hackage.haskell.org/package/alex-3.2.7.1/alex-3.2.7.1.tar.gz"],
126126
)
127127

128-
if GHC_VERSION and GHC_VERSION.startswith("9.4."):
128+
# TODO: Remove when tests are run with a ghc version containing Cabal >= 3.10
129+
# See https://github.com/tweag/rules_haskell/issues/1871
130+
if GHC_VERSION and GHC_VERSION.startswith("9.6."):
131+
_empty_repo(
132+
name = "Cabal",
133+
error_msg = "When using GHC >= 9.6, do not depend on @Cabal, as https://github.com/tweag/rules_haskell/issues/1871 is fixed.",
134+
)
135+
elif GHC_VERSION and GHC_VERSION.startswith("9.4."):
129136
# TODO: Remove when tests are run with a ghc version containing Cabal >= 3.10
130137
# See https://github.com/tweag/rules_haskell/issues/1871
131138
http_archive(

0 commit comments

Comments
 (0)