Skip to content

Commit a2f26e8

Browse files
committed
fix version bounds for 9.0.1
1 parent 1c141a3 commit a2f26e8

File tree

8 files changed

+40
-16
lines changed

8 files changed

+40
-16
lines changed

ghcide/ghcide.cabal

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,18 @@ library
110110
build-depends:
111111
unix
112112

113-
if impl(ghc == 8.10.5)
113+
if impl(ghc < 8.10.5)
114+
build-depends:
115+
ghc-api-compat ==8.6
116+
elif impl(ghc == 8.10.5)
114117
build-depends:
115118
ghc-api-compat ==8.10.5
116119
elif impl(ghc > 8.10.5) && impl(ghc < 9)
117120
build-depends:
118121
ghc-api-compat ==8.10.6
119122
else
120123
build-depends:
121-
ghc-api-compat ==8.6
124+
ghc-api-compat
122125

123126
default-extensions:
124127
ApplicativeDo

haskell-language-server.cabal

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,15 +360,18 @@ executable haskell-language-server
360360
, transformers
361361
, unordered-containers
362362

363-
if impl(ghc == 8.10.5)
363+
if impl(ghc < 8.10.5)
364+
build-depends:
365+
ghc-api-compat ==8.6
366+
elif impl(ghc == 8.10.5)
364367
build-depends:
365368
ghc-api-compat ==8.10.5
366369
elif impl(ghc > 8.10.5) && impl(ghc < 9)
367370
build-depends:
368371
ghc-api-compat ==8.10.6
369372
else
370373
build-depends:
371-
ghc-api-compat ==8.6
374+
ghc-api-compat
372375

373376
default-language: Haskell2010
374377
default-extensions: DataKinds, TypeOperators

hls-plugin-api/hls-plugin-api.cabal

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,18 @@ library
5656
, text
5757
, unordered-containers
5858

59-
if impl(ghc == 8.10.5)
59+
if impl(ghc < 8.10.5)
60+
build-depends:
61+
ghc-api-compat ==8.6
62+
elif impl(ghc == 8.10.5)
6063
build-depends:
6164
ghc-api-compat ==8.10.5
6265
elif impl(ghc > 8.10.5) && impl(ghc < 9)
6366
build-depends:
6467
ghc-api-compat ==8.10.6
6568
else
6669
build-depends:
67-
ghc-api-compat ==8.6
70+
ghc-api-compat
6871

6972
if os(windows)
7073
build-depends: Win32

plugins/hls-call-hierarchy-plugin/hls-call-hierarchy-plugin.cabal

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,18 @@ library
3939
default-language: Haskell2010
4040
default-extensions: DataKinds
4141

42-
if impl(ghc == 8.10.5)
42+
if impl(ghc < 8.10.5)
43+
build-depends:
44+
ghc-api-compat ==8.6
45+
elif impl(ghc == 8.10.5)
4346
build-depends:
4447
ghc-api-compat ==8.10.5
4548
elif impl(ghc > 8.10.5) && impl(ghc < 9)
4649
build-depends:
4750
ghc-api-compat ==8.10.6
4851
else
4952
build-depends:
50-
ghc-api-compat ==8.6
53+
ghc-api-compat
5154

5255
test-suite tests
5356
type: exitcode-stdio-1.0

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,18 @@ library
3636
, text
3737
, transformers
3838

39-
if impl(ghc == 8.10.5)
39+
if impl(ghc < 8.10.5)
40+
build-depends:
41+
ghc-api-compat ==8.6
42+
elif impl(ghc == 8.10.5)
4043
build-depends:
4144
ghc-api-compat ==8.10.5
4245
elif impl(ghc > 8.10.5) && impl(ghc < 9)
4346
build-depends:
4447
ghc-api-compat ==8.10.6
4548
else
4649
build-depends:
47-
ghc-api-compat ==8.6
50+
ghc-api-compat
4851

4952
default-language: Haskell2010
5053
default-extensions:

plugins/hls-explicit-imports-plugin/hls-explicit-imports-plugin.cabal

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,18 @@ library
2626
, text
2727
, unordered-containers
2828

29-
if impl(ghc == 8.10.5)
29+
if impl(ghc < 8.10.5)
30+
build-depends:
31+
ghc-api-compat ==8.6
32+
elif impl(ghc == 8.10.5)
3033
build-depends:
3134
ghc-api-compat ==8.10.5
3235
elif impl(ghc > 8.10.5) && impl(ghc < 9)
3336
build-depends:
3437
ghc-api-compat ==8.10.6
3538
else
3639
build-depends:
37-
ghc-api-compat ==8.6
40+
ghc-api-compat
3841

3942
default-language: Haskell2010
4043
default-extensions:

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,18 @@ library
3333

3434
default-language: Haskell2010
3535

36-
if impl(ghc == 8.10.5)
36+
if impl(ghc < 8.10.5)
37+
build-depends:
38+
ghc-api-compat ==8.6
39+
elif impl(ghc == 8.10.5)
3740
build-depends:
3841
ghc-api-compat ==8.10.5
3942
elif impl(ghc > 8.10.5) && impl(ghc < 9)
4043
build-depends:
4144
ghc-api-compat ==8.10.6
4245
else
4346
build-depends:
44-
ghc-api-compat ==8.6
47+
ghc-api-compat
4548

4649
test-suite tests
4750
type: exitcode-stdio-1.0

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,18 @@ library
3232
, transformers
3333
, unordered-containers
3434

35-
if impl(ghc == 8.10.5)
35+
if impl(ghc < 8.10.5)
36+
build-depends:
37+
ghc-api-compat ==8.6
38+
elif impl(ghc == 8.10.5)
3639
build-depends:
3740
ghc-api-compat ==8.10.5
3841
elif impl(ghc > 8.10.5) && impl(ghc < 9)
3942
build-depends:
4043
ghc-api-compat ==8.10.6
4144
else
4245
build-depends:
43-
ghc-api-compat ==8.6
46+
ghc-api-compat
4447

4548
default-language: Haskell2010
4649
default-extensions:

0 commit comments

Comments
 (0)