Skip to content

Commit 84e7d80

Browse files
committed
rebase
1 parent 5d59b3b commit 84e7d80

File tree

24 files changed

+202
-41
lines changed

24 files changed

+202
-41
lines changed

haskell-language-server.cabal

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -197,102 +197,102 @@ flag cabalfmt
197197
manual: True
198198

199199
common cabalfmt
200-
if flag(cabalfmt)
200+
if flag(cabalfmt) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
201201
build-depends: hls-cabal-fmt-plugin == 2.2.0.0
202202
cpp-options: -Dhls_cabalfmt
203203

204204
common cabal
205-
if flag(cabal)
205+
if flag(cabal) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
206206
build-depends: hls-cabal-plugin == 2.2.0.0
207207
cpp-options: -Dhls_cabal
208208

209209
common class
210-
if flag(class)
210+
if flag(class) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
211211
build-depends: hls-class-plugin == 2.2.0.0
212212
cpp-options: -Dhls_class
213213

214214
common callHierarchy
215-
if flag(callHierarchy)
215+
if flag(callHierarchy) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
216216
build-depends: hls-call-hierarchy-plugin == 2.2.0.0
217217
cpp-options: -Dhls_callHierarchy
218218

219219
common eval
220-
if flag(eval)
220+
if flag(eval) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
221221
build-depends: hls-eval-plugin == 2.2.0.0
222222
cpp-options: -Dhls_eval
223223

224224
common importLens
225-
if flag(importLens)
225+
if flag(importLens) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
226226
build-depends: hls-explicit-imports-plugin == 2.2.0.0
227227
cpp-options: -Dhls_importLens
228228

229229
common rename
230-
if flag(rename)
230+
if flag(rename) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
231231
build-depends: hls-rename-plugin == 2.2.0.0
232232
cpp-options: -Dhls_rename
233233

234234
common retrie
235-
if flag(retrie)
235+
if flag(retrie) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
236236
build-depends: hls-retrie-plugin == 2.2.0.0
237237
cpp-options: -Dhls_retrie
238238

239239
common hlint
240-
if flag(hlint)
240+
if flag(hlint) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
241241
build-depends: hls-hlint-plugin == 2.2.0.0
242242
cpp-options: -Dhls_hlint
243243

244244
common moduleName
245-
if flag(moduleName)
245+
if flag(moduleName) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
246246
build-depends: hls-module-name-plugin == 2.2.0.0
247247
cpp-options: -Dhls_moduleName
248248

249249
common pragmas
250-
if flag(pragmas)
250+
if flag(pragmas) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
251251
build-depends: hls-pragmas-plugin == 2.2.0.0
252252
cpp-options: -Dhls_pragmas
253253

254254
common splice
255-
if flag(splice)
255+
if flag(splice) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
256256
build-depends: hls-splice-plugin == 2.2.0.0
257257
cpp-options: -Dhls_splice
258258

259259
common alternateNumberFormat
260-
if flag(alternateNumberFormat)
260+
if flag(alternateNumberFormat) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
261261
build-depends: hls-alternate-number-format-plugin == 2.2.0.0
262262
cpp-options: -Dhls_alternateNumberFormat
263263

264264
common qualifyImportedNames
265-
if flag(qualifyImportedNames)
265+
if flag(qualifyImportedNames) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
266266
build-depends: hls-qualify-imported-names-plugin == 2.2.0.0
267267
cpp-options: -Dhls_qualifyImportedNames
268268

269269
common codeRange
270-
if flag(codeRange)
270+
if flag(codeRange) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
271271
build-depends: hls-code-range-plugin == 2.2.0.0
272272
cpp-options: -Dhls_codeRange
273273

274274
common changeTypeSignature
275-
if flag(changeTypeSignature)
275+
if flag(changeTypeSignature) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
276276
build-depends: hls-change-type-signature-plugin == 2.2.0.0
277277
cpp-options: -Dhls_changeTypeSignature
278278

279279
common gadt
280-
if flag(gadt)
280+
if flag(gadt) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
281281
build-depends: hls-gadt-plugin == 2.2.0.0
282282
cpp-options: -Dhls_gadt
283283

284284
common explicitFixity
285-
if flag(explicitFixity)
285+
if flag(explicitFixity) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
286286
build-depends: hls-explicit-fixity-plugin == 2.2.0.0
287287
cpp-options: -DexplicitFixity
288288

289289
common explicitFields
290-
if flag(explicitFields)
290+
if flag(explicitFields) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
291291
build-depends: hls-explicit-record-fields-plugin == 2.2.0.0
292292
cpp-options: -DexplicitFields
293293

294294
common overloadedRecordDot
295-
if flag(overloadedRecordDot) && (impl(ghc >= 9.2.0) || flag(ignore-plugins-ghc-bounds))
295+
if flag(overloadedRecordDot) && (impl(ghc >= 9.2.0 && <= 9.8.0 ) || flag(ignore-plugins-ghc-bounds))
296296
build-depends: hls-overloaded-record-dot-plugin == 2.2.0.0
297297
cpp-options: -Dhls_overloaded_record_dot
298298

@@ -304,7 +304,7 @@ common floskell
304304
cpp-options: -Dhls_floskell
305305

306306
common fourmolu
307-
if flag(fourmolu)
307+
if flag(fourmolu) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
308308
build-depends: hls-fourmolu-plugin == 2.2.0.0
309309
cpp-options: -Dhls_fourmolu
310310

@@ -314,12 +314,12 @@ common ormolu
314314
cpp-options: -Dhls_ormolu
315315

316316
common stylishHaskell
317-
if flag(stylishHaskell)
317+
if flag(stylishHaskell) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
318318
build-depends: hls-stylish-haskell-plugin == 2.2.0.0
319319
cpp-options: -Dhls_stylishHaskell
320320

321321
common refactor
322-
if flag(refactor)
322+
if flag(refactor) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
323323
build-depends: hls-refactor-plugin == 2.2.0.0
324324
cpp-options: -Dhls_refactor
325325

plugins/hls-alternate-number-format-plugin/hls-alternate-number-format-plugin.cabal

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ source-repository head
2222
location: https://github.com/haskell/haskell-language-server.git
2323

2424
library
25-
buildable: True
25+
if impl(ghc >= 9.8)
26+
buildable: False
27+
else
28+
buildable: True
2629
exposed-modules: Ide.Plugin.AlternateNumberFormat, Ide.Plugin.Conversion
2730
other-modules: Ide.Plugin.Literals
2831
hs-source-dirs: src
@@ -53,7 +56,10 @@ library
5356
RecordWildCards
5457

5558
test-suite tests
56-
buildable: True
59+
if impl(ghc >= 9.8)
60+
buildable: False
61+
else
62+
buildable: True
5763
type: exitcode-stdio-1.0
5864
default-language: Haskell2010
5965
hs-source-dirs: test

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ common warnings
2626
ghc-options: -Wall
2727

2828
library
29+
if impl(ghc >= 9.8)
30+
buildable: False
31+
else
32+
buildable: True
2933
import: warnings
3034
exposed-modules: Ide.Plugin.CabalFmt
3135
hs-source-dirs: src
@@ -45,6 +49,10 @@ library
4549
default-language: Haskell2010
4650

4751
test-suite tests
52+
if impl(ghc >= 9.8)
53+
buildable: False
54+
else
55+
buildable: True
4856
import: warnings
4957
type: exitcode-stdio-1.0
5058
default-language: Haskell2010

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ common warnings
2323
ghc-options: -Wall
2424

2525
library
26+
if impl(ghc >= 9.8)
27+
buildable: False
28+
else
29+
buildable: True
2630
import: warnings
2731
exposed-modules:
2832
Ide.Plugin.Cabal
@@ -67,6 +71,10 @@ library
6771
default-language: Haskell2010
6872

6973
test-suite tests
74+
if impl(ghc >= 9.8)
75+
buildable: False
76+
else
77+
buildable: True
7078
import: warnings
7179
default-language: Haskell2010
7280
type: exitcode-stdio-1.0

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ source-repository head
2020
location: https://github.com/haskell/haskell-language-server.git
2121

2222
library
23+
if impl(ghc >= 9.8)
24+
buildable: False
25+
else
26+
buildable: True
2327
buildable: True
2428
exposed-modules: Ide.Plugin.CallHierarchy
2529
other-modules:
@@ -46,6 +50,10 @@ library
4650
default-extensions: DataKinds
4751

4852
test-suite tests
53+
if impl(ghc >= 9.8)
54+
buildable: False
55+
else
56+
buildable: True
4957
buildable: True
5058
type: exitcode-stdio-1.0
5159
default-language: Haskell2010

plugins/hls-change-type-signature-plugin/hls-change-type-signature-plugin.cabal

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ source-repository head
2323
location: https://github.com/haskell/haskell-language-server.git
2424

2525
library
26-
buildable: True
26+
if impl(ghc >= 9.8)
27+
buildable: False
28+
else
29+
buildable: True
2730
exposed-modules: Ide.Plugin.ChangeTypeSignature
2831
hs-source-dirs: src
2932
build-depends:
@@ -51,7 +54,10 @@ library
5154

5255

5356
test-suite tests
54-
buildable: True
57+
if impl(ghc >= 9.8)
58+
buildable: False
59+
else
60+
buildable: True
5561
type: exitcode-stdio-1.0
5662
default-language: Haskell2010
5763
hs-source-dirs: test

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ source-repository head
2525
location: https://github.com/haskell/haskell-language-server.git
2626

2727
library
28+
if impl(ghc >= 9.8)
29+
buildable: False
30+
else
31+
buildable: True
2832
exposed-modules: Ide.Plugin.Class
2933
other-modules: Ide.Plugin.Class.CodeAction
3034
, Ide.Plugin.Class.CodeLens
@@ -63,6 +67,10 @@ library
6367
ghc-options: -Wall -Wno-unticked-promoted-constructors -Wno-name-shadowing
6468

6569
test-suite tests
70+
if impl(ghc >= 9.8)
71+
buildable: False
72+
else
73+
buildable: True
6674
type: exitcode-stdio-1.0
6775
default-language: Haskell2010
6876
hs-source-dirs: test

plugins/hls-code-range-plugin/hls-code-range-plugin.cabal

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ source-repository head
2323
location: https://github.com/haskell/haskell-language-server.git
2424

2525
library
26+
if impl(ghc >= 9.8)
27+
buildable: False
28+
else
29+
buildable: True
2630
exposed-modules:
2731
Ide.Plugin.CodeRange
2832
Ide.Plugin.CodeRange.Rules
@@ -49,6 +53,10 @@ library
4953
, vector
5054

5155
test-suite tests
56+
if impl(ghc >= 9.8)
57+
buildable: False
58+
else
59+
buildable: True
5260
type: exitcode-stdio-1.0
5361
default-language: Haskell2010
5462
hs-source-dirs: test

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ source-repository head
3737
location: https://github.com/haskell/haskell-language-server
3838

3939
library
40+
if impl(ghc >= 9.8)
41+
buildable: False
42+
else
43+
buildable: True
4044
exposed-modules:
4145
Ide.Plugin.Eval
4246
Ide.Plugin.Eval.Types
@@ -98,6 +102,10 @@ library
98102
TypeOperators
99103

100104
test-suite tests
105+
if impl(ghc >= 9.8)
106+
buildable: False
107+
else
108+
buildable: True
101109
type: exitcode-stdio-1.0
102110
default-language: Haskell2010
103111
hs-source-dirs: test

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ source-repository head
2020
location: https://github.com/haskell/haskell-language-server.git
2121

2222
library
23-
buildable: True
23+
if impl(ghc >= 9.8)
24+
buildable: False
25+
else
26+
buildable: True
2427
exposed-modules: Ide.Plugin.ExplicitFixity
2528

2629
hs-source-dirs: src
@@ -45,7 +48,10 @@ library
4548
default-extensions: DataKinds
4649

4750
test-suite tests
48-
buildable: True
51+
if impl(ghc >= 9.8)
52+
buildable: False
53+
else
54+
buildable: True
4955
type: exitcode-stdio-1.0
5056
default-language: Haskell2010
5157
hs-source-dirs: test

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ common warnings
2929

3030
library
3131
import: warnings
32-
buildable: True
32+
if impl(ghc >= 9.8)
33+
buildable: False
34+
else
35+
buildable: True
3336
exposed-modules: Ide.Plugin.ExplicitImports
3437
hs-source-dirs: src
3538
build-depends:
@@ -58,7 +61,10 @@ library
5861

5962
test-suite tests
6063
import: warnings
61-
buildable: True
64+
if impl(ghc >= 9.8)
65+
buildable: False
66+
else
67+
buildable: True
6268
type: exitcode-stdio-1.0
6369
default-language: Haskell2010
6470
hs-source-dirs: test
@@ -73,4 +79,4 @@ test-suite tests
7379
, lens
7480
, lsp-types
7581
, row-types
76-
, text
82+
, text

0 commit comments

Comments
 (0)