Skip to content

Commit ff9508a

Browse files
committed
added new versions of ghc-api-compat
1 parent 851c6a3 commit ff9508a

File tree

13 files changed

+59
-40
lines changed

13 files changed

+59
-40
lines changed

cabal-ghc901.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ source-repository-package
6666

6767
write-ghc-environment-files: never
6868

69-
index-state: 2021-08-30T20:52:40Z
69+
index-state: 2021-09-06T12:12:22Z
7070

7171
constraints:
7272
-- These plugins doesn't work on GHC9 yet

cabal.project

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,12 @@ package *
3333

3434
write-ghc-environment-files: never
3535

36-
index-state: 2021-08-30T20:52:40Z
36+
index-state: 2021-09-06T12:12:22Z
3737

3838
constraints:
3939
hyphenation +embed
4040

41-
4241
allow-newer:
43-
-- for ghc 8.10.7
44-
ghc-api-compat:ghc,
4542
-- for shake-bench
4643
Chart-diagrams:diagrams-core,
4744
SVGFonts:diagrams-core

ghcide/ghcide.cabal

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,15 @@ library
116116
elif impl(ghc == 8.10.5)
117117
build-depends:
118118
ghc-api-compat ==8.10.5
119-
elif impl(ghc > 8.10.5) && impl(ghc < 9)
119+
elif impl(ghc == 8.10.6)
120120
build-depends:
121121
ghc-api-compat ==8.10.6
122-
else
122+
elif impl(ghc == 8.10.7)
123+
build-depends:
124+
ghc-api-compat ==8.10.7
125+
elif impl(ghc == 9.0.1)
123126
build-depends:
124-
ghc-api-compat
127+
ghc-api-compat ==9.0.1
125128

126129
default-extensions:
127130
ApplicativeDo

haskell-language-server.cabal

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,12 +366,15 @@ executable haskell-language-server
366366
elif impl(ghc == 8.10.5)
367367
build-depends:
368368
ghc-api-compat ==8.10.5
369-
elif impl(ghc > 8.10.5) && impl(ghc < 9)
369+
elif impl(ghc == 8.10.6)
370370
build-depends:
371371
ghc-api-compat ==8.10.6
372-
else
372+
elif impl(ghc == 8.10.7)
373373
build-depends:
374-
ghc-api-compat
374+
ghc-api-compat ==8.10.7
375+
elif impl(ghc == 9.0.1)
376+
build-depends:
377+
ghc-api-compat ==9.0.1
375378

376379
default-language: Haskell2010
377380
default-extensions: DataKinds, TypeOperators

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,15 @@ library
6262
elif impl(ghc == 8.10.5)
6363
build-depends:
6464
ghc-api-compat ==8.10.5
65-
elif impl(ghc > 8.10.5) && impl(ghc < 9)
65+
elif impl(ghc == 8.10.6)
6666
build-depends:
6767
ghc-api-compat ==8.10.6
68-
else
68+
elif impl(ghc == 8.10.7)
69+
build-depends:
70+
ghc-api-compat ==8.10.7
71+
elif impl(ghc == 9.0.1)
6972
build-depends:
70-
ghc-api-compat
73+
ghc-api-compat ==9.0.1
7174

7275
if os(windows)
7376
build-depends: Win32

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,15 @@ library
4545
elif impl(ghc == 8.10.5)
4646
build-depends:
4747
ghc-api-compat ==8.10.5
48-
elif impl(ghc > 8.10.5) && impl(ghc < 9)
48+
elif impl(ghc == 8.10.6)
4949
build-depends:
5050
ghc-api-compat ==8.10.6
51-
else
51+
elif impl(ghc == 8.10.7)
5252
build-depends:
53-
ghc-api-compat
53+
ghc-api-compat ==8.10.7
54+
elif impl(ghc == 9.0.1)
55+
build-depends:
56+
ghc-api-compat ==9.0.1
5457

5558
test-suite tests
5659
type: exitcode-stdio-1.0

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,15 @@ library
4242
elif impl(ghc == 8.10.5)
4343
build-depends:
4444
ghc-api-compat ==8.10.5
45-
elif impl(ghc > 8.10.5) && impl(ghc < 9)
45+
elif impl(ghc == 8.10.6)
4646
build-depends:
4747
ghc-api-compat ==8.10.6
48-
else
48+
elif impl(ghc == 8.10.7)
4949
build-depends:
50-
ghc-api-compat
50+
ghc-api-compat ==8.10.7
51+
elif impl(ghc == 9.0.1)
52+
build-depends:
53+
ghc-api-compat ==9.0.1
5154

5255
default-language: Haskell2010
5356
default-extensions:

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,19 +81,22 @@ library
8181
, transformers
8282
, unliftio
8383
, unordered-containers
84-
84+
8585
if impl(ghc < 8.10.5)
8686
build-depends:
8787
ghc-api-compat ==8.6
8888
elif impl(ghc == 8.10.5)
8989
build-depends:
9090
ghc-api-compat ==8.10.5
91-
elif impl(ghc > 8.10.5) && impl(ghc < 9)
91+
elif impl(ghc == 8.10.6)
9292
build-depends:
9393
ghc-api-compat ==8.10.6
94-
else
94+
elif impl(ghc == 8.10.7)
95+
build-depends:
96+
ghc-api-compat ==8.10.7
97+
elif impl(ghc == 9.0.1)
9598
build-depends:
96-
ghc-api-compat
99+
ghc-api-compat ==9.0.1
97100

98101
ghc-options:
99102
-Wall -Wno-name-shadowing -Wno-unticked-promoted-constructors

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,15 @@ library
3232
elif impl(ghc == 8.10.5)
3333
build-depends:
3434
ghc-api-compat ==8.10.5
35-
elif impl(ghc > 8.10.5) && impl(ghc < 9)
35+
elif impl(ghc == 8.10.6)
3636
build-depends:
3737
ghc-api-compat ==8.10.6
38-
else
38+
elif impl(ghc == 8.10.7)
3939
build-depends:
40-
ghc-api-compat
40+
ghc-api-compat ==8.10.7
41+
elif impl(ghc == 9.0.1)
42+
build-depends:
43+
ghc-api-compat ==9.0.1
4144

4245
default-language: Haskell2010
4346
default-extensions:

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,15 @@ library
3939
elif impl(ghc == 8.10.5)
4040
build-depends:
4141
ghc-api-compat ==8.10.5
42-
elif impl(ghc > 8.10.5) && impl(ghc < 9)
42+
elif impl(ghc == 8.10.6)
4343
build-depends:
4444
ghc-api-compat ==8.10.6
45-
else
45+
elif impl(ghc == 8.10.7)
4646
build-depends:
47-
ghc-api-compat
47+
ghc-api-compat ==8.10.7
48+
elif impl(ghc == 9.0.1)
49+
build-depends:
50+
ghc-api-compat ==9.0.1
4851

4952
test-suite tests
5053
type: exitcode-stdio-1.0

0 commit comments

Comments
 (0)