@@ -174,7 +174,7 @@ flag cabalgild
174
174
manual : True
175
175
176
176
common cabalgild
177
- if flag(cabalgild) && impl(ghc < 9.11 )
177
+ if flag(cabalgild) && ( impl(ghc < 9.11 ) || flag(ignore-plugins-ghc-bounds) )
178
178
build-depends : haskell-language-server :hls-cabal-gild-plugin
179
179
cpp-options : -Dhls_cabalgild
180
180
@@ -186,7 +186,7 @@ flag isolateCabalGildTests
186
186
187
187
library hls-cabal-gild-plugin
188
188
import : defaults, pedantic, warnings
189
- if !flag(cabalgild) || impl(ghc > 9.11 )
189
+ if !flag(cabalgild) || ( impl(ghc > 9.11 ) && !flag(ignore-plugins-ghc-bounds) )
190
190
buildable : False
191
191
exposed-modules : Ide.Plugin.CabalGild
192
192
hs-source-dirs : plugins/hls-cabal-gild-plugin/src
@@ -203,7 +203,7 @@ library hls-cabal-gild-plugin
203
203
-- The `hls-cabal-plugin` is needed for tests, as we need to install notification handlers
204
204
test-suite hls-cabal-gild-plugin-tests
205
205
import : defaults, pedantic, test-defaults, warnings
206
- if !flag(cabalgild) || !flag(cabal) || impl(ghc > 9.11 )
206
+ if !flag(cabalgild) || !flag(cabal) || ( impl(ghc > 9.11 ) && !flag(ignore-plugins-ghc-bounds) )
207
207
buildable : False
208
208
type : exitcode-stdio-1.0
209
209
hs-source-dirs : plugins/hls-cabal-gild-plugin/test
@@ -580,13 +580,13 @@ flag rename
580
580
manual : True
581
581
582
582
common rename
583
- if flag(rename) && impl(ghc < 9.11 )
583
+ if flag(rename) && ( impl(ghc < 9.11 ) || flag(ignore-plugins-ghc-bounds) )
584
584
build-depends : haskell-language-server :hls-rename-plugin
585
585
cpp-options : -Dhls_rename
586
586
587
587
library hls-rename-plugin
588
588
import : defaults, pedantic, warnings
589
- if !flag(rename) || impl(ghc > 9.11 )
589
+ if !flag(rename) || ( impl(ghc > 9.11 ) && !flag(ignore-plugins-ghc-bounds) )
590
590
buildable : False
591
591
exposed-modules : Ide.Plugin.Rename
592
592
hs-source-dirs : plugins/hls-rename-plugin/src
@@ -610,7 +610,7 @@ library hls-rename-plugin
610
610
611
611
test-suite hls-rename-plugin-tests
612
612
import : defaults, pedantic, test-defaults, warnings
613
- if !flag(rename) || impl(ghc > 9.11 )
613
+ if !flag(rename) || ( impl(ghc > 9.11 ) && !flag(ignore-plugins-ghc-bounds) )
614
614
buildable : False
615
615
type : exitcode-stdio-1.0
616
616
hs-source-dirs : plugins/hls-rename-plugin/test
@@ -636,13 +636,13 @@ flag retrie
636
636
manual : True
637
637
638
638
common retrie
639
- if flag(retrie) && impl(ghc < 9.10 )
639
+ if flag(retrie) && ( impl(ghc < 9.10 ) || flag(ignore-plugins-ghc-bounds) )
640
640
build-depends : haskell-language-server :hls-retrie-plugin
641
641
cpp-options : -Dhls_retrie
642
642
643
643
library hls-retrie-plugin
644
644
import : defaults, pedantic, warnings
645
- if !(flag(retrie) && impl(ghc < 9.10 ))
645
+ if !(flag(retrie) && ( impl(ghc < 9.10 ) || flag(ignore-plugins-ghc-bounds) ))
646
646
buildable : False
647
647
exposed-modules : Ide.Plugin.Retrie
648
648
hs-source-dirs : plugins/hls-retrie-plugin/src
@@ -673,7 +673,7 @@ library hls-retrie-plugin
673
673
674
674
test-suite hls-retrie-plugin-tests
675
675
import : defaults, pedantic, test-defaults, warnings
676
- if !(flag(retrie) && impl(ghc < 9.10 ))
676
+ if !(flag(retrie) && ( impl(ghc < 9.10 ) || flag(ignore-plugins-ghc-bounds) ))
677
677
buildable : False
678
678
type : exitcode-stdio-1.0
679
679
hs-source-dirs : plugins/hls-retrie-plugin/test
@@ -703,14 +703,14 @@ flag hlint
703
703
manual : True
704
704
705
705
common hlint
706
- if flag(hlint) && impl(ghc < 9.10 )
706
+ if flag(hlint) && ( impl(ghc < 9.10 ) || flag(ignore-plugins-ghc-bounds) )
707
707
build-depends : haskell-language-server :hls-hlint-plugin
708
708
cpp-options : -Dhls_hlint
709
709
710
710
library hls-hlint-plugin
711
711
import : defaults, pedantic, warnings
712
712
-- https://github.com/ndmitchell/hlint/pull/1594
713
- if !(flag(hlint)) || impl(ghc > 9.10 )
713
+ if !(flag(hlint)) || ( impl(ghc > 9.10 ) && !flag(ignore-plugins-ghc-bounds) )
714
714
buildable : False
715
715
exposed-modules : Ide.Plugin.Hlint
716
716
hs-source-dirs : plugins/hls-hlint-plugin/src
@@ -753,7 +753,7 @@ library hls-hlint-plugin
753
753
754
754
test-suite hls-hlint-plugin-tests
755
755
import : defaults, pedantic, test-defaults, warnings
756
- if (!flag(hlint)) || impl(ghc > 9.10 )
756
+ if (!flag(hlint)) || ( impl(ghc > 9.10 ) && !flag(ignore-plugins-ghc-bounds) )
757
757
buildable : False
758
758
type : exitcode-stdio-1.0
759
759
hs-source-dirs : plugins/hls-hlint-plugin/test
@@ -782,13 +782,13 @@ flag stan
782
782
manual : True
783
783
784
784
common stan
785
- if flag(stan) && impl(ghc < 9.11 )
785
+ if flag(stan) && ( impl(ghc < 9.11 ) || flag(ignore-plugins-ghc-bounds) )
786
786
build-depends : haskell-language-server :hls-stan-plugin
787
787
cpp-options : -Dhls_stan
788
788
789
789
library hls-stan-plugin
790
790
import : defaults, pedantic, warnings
791
- if !flag(stan) || impl(ghc > 9.11 )
791
+ if !flag(stan) || ( impl(ghc > 9.11 ) && !flag(ignore-plugins-ghc-bounds) )
792
792
buildable : False
793
793
exposed-modules : Ide.Plugin.Stan
794
794
hs-source-dirs : plugins/hls-stan-plugin/src
@@ -813,7 +813,7 @@ library hls-stan-plugin
813
813
814
814
test-suite hls-stan-plugin-tests
815
815
import : defaults, pedantic, test-defaults, warnings
816
- if !flag(stan) || impl(ghc > 9.11 )
816
+ if !flag(stan) || ( impl(ghc > 9.11 ) && !flag(ignore-plugins-ghc-bounds) )
817
817
buildable : False
818
818
type : exitcode-stdio-1.0
819
819
hs-source-dirs : plugins/hls-stan-plugin/test
@@ -932,13 +932,13 @@ flag splice
932
932
manual : True
933
933
934
934
common splice
935
- if flag(splice) && impl(ghc < 9.10 )
935
+ if flag(splice) && ( impl(ghc < 9.10 ) || flag(ignore-plugins-ghc-bounds) )
936
936
build-depends : haskell-language-server :hls-splice-plugin
937
937
cpp-options : -Dhls_splice
938
938
939
939
library hls-splice-plugin
940
940
import : defaults, pedantic, warnings
941
- if !(flag(splice) && impl(ghc < 9.10 ))
941
+ if !(flag(splice) && ( impl(ghc < 9.10 ) || flag(ignore-plugins-ghc-bounds) ))
942
942
buildable : False
943
943
exposed-modules :
944
944
Ide.Plugin.Splice
@@ -966,7 +966,7 @@ library hls-splice-plugin
966
966
967
967
test-suite hls-splice-plugin-tests
968
968
import : defaults, pedantic, test-defaults, warnings
969
- if !(flag(splice) && impl(ghc < 9.10 ))
969
+ if !(flag(splice) && ( impl(ghc < 9.10 ) || flag(ignore-plugins-ghc-bounds) ))
970
970
buildable : False
971
971
type : exitcode-stdio-1.0
972
972
hs-source-dirs : plugins/hls-splice-plugin/test
@@ -1208,13 +1208,13 @@ flag gadt
1208
1208
manual : True
1209
1209
1210
1210
common gadt
1211
- if flag(gadt) && impl(ghc < 9.11 )
1211
+ if flag(gadt) && ( impl(ghc < 9.11 ) || flag(ignore-plugins-ghc-bounds) )
1212
1212
build-depends : haskell-language-server :hls-gadt-plugin
1213
1213
cpp-options : -Dhls_gadt
1214
1214
1215
1215
library hls-gadt-plugin
1216
1216
import : defaults, pedantic, warnings
1217
- if !flag(gadt) || impl(ghc > 9.11 )
1217
+ if !flag(gadt) || ( impl(ghc > 9.11 ) && !flag(ignore-plugins-ghc-bounds) )
1218
1218
buildable : False
1219
1219
exposed-modules : Ide.Plugin.GADT
1220
1220
other-modules : Ide.Plugin.GHC
@@ -1238,7 +1238,7 @@ library hls-gadt-plugin
1238
1238
1239
1239
test-suite hls-gadt-plugin-tests
1240
1240
import : defaults, pedantic, test-defaults, warnings
1241
- if !flag(gadt) || impl(ghc > 9.11 )
1241
+ if !flag(gadt) || ( impl(ghc > 9.11 ) && !flag(ignore-plugins-ghc-bounds) )
1242
1242
buildable : False
1243
1243
type : exitcode-stdio-1.0
1244
1244
hs-source-dirs : plugins/hls-gadt-plugin/test
@@ -1400,14 +1400,14 @@ flag floskell
1400
1400
manual : True
1401
1401
1402
1402
common floskell
1403
- if flag(floskell) && impl(ghc < 9.10 )
1403
+ if flag(floskell) && ( impl(ghc < 9.10 ) || flag(ignore-plugins-ghc-bounds) )
1404
1404
build-depends : haskell-language-server :hls-floskell-plugin
1405
1405
cpp-options : -Dhls_floskell
1406
1406
1407
1407
library hls-floskell-plugin
1408
1408
import : defaults, pedantic, warnings
1409
1409
-- https://github.com/ennocramer/floskell/pull/82
1410
- if !(flag(floskell) && impl(ghc < 9.10 ))
1410
+ if !(flag(floskell) && ( impl(ghc < 9.10 ) || flag(ignore-plugins-ghc-bounds) ))
1411
1411
buildable : False
1412
1412
exposed-modules : Ide.Plugin.Floskell
1413
1413
hs-source-dirs : plugins/hls-floskell-plugin/src
@@ -1422,7 +1422,7 @@ library hls-floskell-plugin
1422
1422
1423
1423
test-suite hls-floskell-plugin-tests
1424
1424
import : defaults, pedantic, test-defaults, warnings
1425
- if !(flag(floskell) && impl(ghc < 9.10 ))
1425
+ if !(flag(floskell) && ( impl(ghc < 9.10 ) || flag(ignore-plugins-ghc-bounds) ))
1426
1426
buildable : False
1427
1427
type : exitcode-stdio-1.0
1428
1428
hs-source-dirs : plugins/hls-floskell-plugin/test
@@ -1442,13 +1442,13 @@ flag fourmolu
1442
1442
manual : True
1443
1443
1444
1444
common fourmolu
1445
- if flag(fourmolu) && impl(ghc < 9.11 )
1445
+ if flag(fourmolu) && ( impl(ghc < 9.11 ) || flag(ignore-plugins-ghc-bounds) )
1446
1446
build-depends : haskell-language-server :hls-fourmolu-plugin
1447
1447
cpp-options : -Dhls_fourmolu
1448
1448
1449
1449
library hls-fourmolu-plugin
1450
1450
import : defaults, pedantic, warnings
1451
- if !flag(fourmolu) || impl(ghc > 9.11 )
1451
+ if !flag(fourmolu) || ( impl(ghc > 9.11 ) && !flag(ignore-plugins-ghc-bounds) )
1452
1452
buildable : False
1453
1453
exposed-modules : Ide.Plugin.Fourmolu
1454
1454
hs-source-dirs : plugins/hls-fourmolu-plugin/src
@@ -1468,7 +1468,7 @@ library hls-fourmolu-plugin
1468
1468
1469
1469
test-suite hls-fourmolu-plugin-tests
1470
1470
import : defaults, pedantic, test-defaults, warnings
1471
- if !flag(fourmolu) || impl(ghc > 9.11 )
1471
+ if !flag(fourmolu) || ( impl(ghc > 9.11 ) && !flag(ignore-plugins-ghc-bounds) )
1472
1472
buildable : False
1473
1473
type : exitcode-stdio-1.0
1474
1474
hs-source-dirs : plugins/hls-fourmolu-plugin/test
@@ -1496,13 +1496,13 @@ flag ormolu
1496
1496
manual : True
1497
1497
1498
1498
common ormolu
1499
- if flag(ormolu) && impl(ghc < 9.11 )
1499
+ if flag(ormolu) && ( impl(ghc < 9.11 ) || flag(ignore-plugins-ghc-bounds) )
1500
1500
build-depends : haskell-language-server :hls-ormolu-plugin
1501
1501
cpp-options : -Dhls_ormolu
1502
1502
1503
1503
library hls-ormolu-plugin
1504
1504
import : defaults, pedantic, warnings
1505
- if !flag(ormolu) || impl(ghc > 9.11 )
1505
+ if !flag(ormolu) || ( impl(ghc > 9.11 ) && !flag(ignore-plugins-ghc-bounds) )
1506
1506
buildable : False
1507
1507
exposed-modules : Ide.Plugin.Ormolu
1508
1508
hs-source-dirs : plugins/hls-ormolu-plugin/src
@@ -1522,7 +1522,7 @@ library hls-ormolu-plugin
1522
1522
1523
1523
test-suite hls-ormolu-plugin-tests
1524
1524
import : defaults, pedantic, test-defaults, warnings
1525
- if !flag(ormolu) || impl(ghc > 9.11 )
1525
+ if !flag(ormolu) || ( impl(ghc > 9.11 ) && !flag(ignore-plugins-ghc-bounds) )
1526
1526
buildable : False
1527
1527
type : exitcode-stdio-1.0
1528
1528
hs-source-dirs : plugins/hls-ormolu-plugin/test
@@ -1551,14 +1551,14 @@ flag stylishHaskell
1551
1551
manual : True
1552
1552
1553
1553
common stylishHaskell
1554
- if flag(stylishHaskell) && impl(ghc < 9.10 )
1554
+ if flag(stylishHaskell) && ( impl(ghc < 9.10 ) || flag(ignore-plugins-ghc-bounds) )
1555
1555
build-depends : haskell-language-server :hls-stylish-haskell-plugin
1556
1556
cpp-options : -Dhls_stylishHaskell
1557
1557
1558
1558
library hls-stylish-haskell-plugin
1559
1559
import : defaults, pedantic, warnings
1560
1560
-- https://github.com/haskell/stylish-haskell/issues/479
1561
- if !(flag(stylishHaskell) && impl(ghc < 9.10 ))
1561
+ if !(flag(stylishHaskell) && ( impl(ghc < 9.10 ) || flag(ignore-plugins-ghc-bounds) ))
1562
1562
buildable : False
1563
1563
exposed-modules : Ide.Plugin.StylishHaskell
1564
1564
hs-source-dirs : plugins/hls-stylish-haskell-plugin/src
@@ -1576,7 +1576,7 @@ library hls-stylish-haskell-plugin
1576
1576
1577
1577
test-suite hls-stylish-haskell-plugin-tests
1578
1578
import : defaults, pedantic, test-defaults, warnings
1579
- if !(flag(stylishHaskell) && impl(ghc < 9.10 ))
1579
+ if !(flag(stylishHaskell) && ( impl(ghc < 9.10 ) || flag(ignore-plugins-ghc-bounds) ))
1580
1580
buildable : False
1581
1581
type : exitcode-stdio-1.0
1582
1582
hs-source-dirs : plugins/hls-stylish-haskell-plugin/test
@@ -1596,13 +1596,13 @@ flag refactor
1596
1596
manual : True
1597
1597
1598
1598
common refactor
1599
- if flag(refactor) && impl(ghc < 9.11 )
1599
+ if flag(refactor) && ( impl(ghc < 9.11 ) || flag(ignore-plugins-ghc-bounds) )
1600
1600
build-depends : haskell-language-server :hls-refactor-plugin
1601
1601
cpp-options : -Dhls_refactor
1602
1602
1603
1603
library hls-refactor-plugin
1604
1604
import : defaults, pedantic, warnings
1605
- if !flag(refactor) || impl(ghc > 9.11 )
1605
+ if !flag(refactor) || ( impl(ghc > 9.11 ) && !flag(ignore-plugins-ghc-bounds) )
1606
1606
buildable : False
1607
1607
exposed-modules : Development.IDE.GHC.ExactPrint
1608
1608
Development.IDE.GHC.Compat.ExactPrint
@@ -1661,7 +1661,7 @@ library hls-refactor-plugin
1661
1661
1662
1662
test-suite hls-refactor-plugin-tests
1663
1663
import : defaults, pedantic, test-defaults, warnings
1664
- if !flag(refactor) || impl(ghc > 9.11 )
1664
+ if !flag(refactor) || ( impl(ghc > 9.11 ) && !flag(ignore-plugins-ghc-bounds) )
1665
1665
buildable : False
1666
1666
type : exitcode-stdio-1.0
1667
1667
hs-source-dirs : plugins/hls-refactor-plugin/test
@@ -2007,11 +2007,11 @@ test-suite func-test
2007
2007
if flag(eval)
2008
2008
cpp-options : -Dhls_eval
2009
2009
-- formatters
2010
- if flag(floskell) && impl(ghc < 9.10 )
2010
+ if flag(floskell) && ( impl(ghc < 9.10 ) || flag(ignore-plugins-ghc-bounds) )
2011
2011
cpp-options : -Dhls_floskell
2012
- if flag(fourmolu) && impl(ghc < 9.11 )
2012
+ if flag(fourmolu) && ( impl(ghc < 9.11 ) || flag(ignore-plugins-ghc-bounds) )
2013
2013
cpp-options : -Dhls_fourmolu
2014
- if flag(ormolu) && impl(ghc < 9.11 )
2014
+ if flag(ormolu) && ( impl(ghc < 9.11 ) || flag(ignore-plugins-ghc-bounds) )
2015
2015
cpp-options : -Dhls_ormolu
2016
2016
2017
2017
test-suite wrapper-test
0 commit comments