Skip to content

Commit 1932674

Browse files
committed
Add support for Cabal 3.8
1 parent fcd223d commit 1932674

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

plugins/hls-cabal-plugin/hls-cabal-plugin.cabal

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,18 @@ library
3333
build-depends:
3434
, base >=4.12 && <5
3535
, bytestring
36-
, Cabal ^>=3.2 || ^>=3.4 || ^>=3.6
36+
-- Ideally, we only want to support a single Cabal version, supporting
37+
-- older versions is completely pointless since Cabal is backwards compatible,
38+
-- the latest Cabal version can parse all versions of the Cabal file format.
39+
--
40+
-- However, stack is making this difficult, if we change the version of Cabal,
41+
-- we essentially need to make sure all other packages in the snapshot have their
42+
-- Cabal dependency version relaxed.
43+
-- Most packages have a Hackage revision, but stack won't pick these up (for sensible reasons)
44+
-- automatically, forcing us to manually update the packages revision id.
45+
-- This is a lot of work for almost zero benefit, so we just allow more versions here
46+
-- and we eventually completely drop support for building HLS with stack.
47+
, Cabal ^>=3.2 || ^>=3.4 || ^>=3.6 || ^>= 3.8
3748
, deepseq
3849
, directory
3950
, extra >=1.7.4

0 commit comments

Comments
 (0)