@@ -353,7 +353,7 @@ library hls-class-plugin
353353 , deepseq
354354 , extra
355355 , ghc
356- , ghc-exactprint >= 1.5 && < 1.13.0.0
356+ , ghc-exactprint >= 1.5 && < 1.15
357357 , ghcide == 2.12.0.0
358358 , hls-graph
359359 , hls-plugin-api == 2.12.0.0
@@ -712,7 +712,8 @@ common hlint
712712 -- Hlint isn't compatible with GHC 9.10, and crashes in subtle ways.
713713 -- See https://github.com/haskell/haskell-language-server/issues/4674
714714 -- for its wake of destruction.
715- if flag(hlint) && !impl(ghc == 9.10. *)
715+ -- hlint depends on ghc-lib-parser which doesn't support GHC 9.14
716+ if flag(hlint) && !impl(ghc == 9.10. *) && !impl(ghc >= 9.14 )
716717 build-depends : haskell-language-server :hls-hlint-plugin
717718 cpp-options : -Dhls_hlint
718719
@@ -721,7 +722,8 @@ library hls-hlint-plugin
721722 -- Hlint isn't compatible with GHC 9.10, and crashes in subtle ways.
722723 -- See https://github.com/haskell/haskell-language-server/issues/4674
723724 -- for its wake of destruction.
724- if !flag(hlint) || impl(ghc == 9.10. *)
725+ -- hlint depends on ghc-lib-parser which doesn't support GHC 9.14
726+ if !flag(hlint) || impl(ghc == 9.10. *) || impl(ghc >= 9.14 )
725727 buildable : False
726728 exposed-modules : Ide.Plugin.Hlint
727729 hs-source-dirs : plugins/hls-hlint-plugin/src
@@ -771,7 +773,8 @@ test-suite hls-hlint-plugin-tests
771773 -- Hlint isn't compatible with GHC 9.10, and crashes in subtle ways.
772774 -- See https://github.com/haskell/haskell-language-server/issues/4674
773775 -- for its wake of destruction.
774- if !flag(hlint) || impl(ghc == 9.10. *)
776+ -- hlint depends on ghc-lib-parser which doesn't support GHC 9.14
777+ if !flag(hlint) || impl(ghc == 9.10. *) || impl(ghc >= 9.14 )
775778 buildable : False
776779 type : exitcode-stdio-1.0
777780 hs-source-dirs : plugins/hls-hlint-plugin/test
@@ -1519,13 +1522,15 @@ flag fourmolu
15191522 manual : True
15201523
15211524common fourmolu
1522- if flag(fourmolu)
1525+ -- fourmolu depends on ghc-lib-parser which doesn't support GHC 9.14
1526+ if flag(fourmolu) && !impl(ghc >= 9.14 )
15231527 build-depends : haskell-language-server :hls-fourmolu-plugin
15241528 cpp-options : -Dhls_fourmolu
15251529
15261530library hls-fourmolu-plugin
15271531 import : defaults, pedantic, warnings
1528- if !flag(fourmolu)
1532+ -- fourmolu depends on ghc-lib-parser which doesn't support GHC 9.14
1533+ if !flag(fourmolu) || impl(ghc >= 9.14 )
15291534 buildable : False
15301535 exposed-modules : Ide.Plugin.Fourmolu
15311536 hs-source-dirs : plugins/hls-fourmolu-plugin/src
@@ -1545,7 +1550,8 @@ library hls-fourmolu-plugin
15451550
15461551test-suite hls-fourmolu-plugin-tests
15471552 import : defaults, pedantic, test-defaults, warnings
1548- if !flag(fourmolu)
1553+ -- fourmolu depends on ghc-lib-parser which doesn't support GHC 9.14
1554+ if !flag(fourmolu) || impl(ghc >= 9.14 )
15491555 buildable : False
15501556 type : exitcode-stdio-1.0
15511557 hs-source-dirs : plugins/hls-fourmolu-plugin/test
@@ -1573,13 +1579,15 @@ flag ormolu
15731579 manual : True
15741580
15751581common ormolu
1576- if flag(ormolu)
1582+ -- ormolu depends on ghc-lib-parser which doesn't support GHC 9.14
1583+ if flag(ormolu) && !impl(ghc >= 9.14 )
15771584 build-depends : haskell-language-server :hls-ormolu-plugin
15781585 cpp-options : -Dhls_ormolu
15791586
15801587library hls-ormolu-plugin
15811588 import : defaults, pedantic, warnings
1582- if !flag(ormolu)
1589+ -- ormolu depends on ghc-lib-parser which doesn't support GHC 9.14
1590+ if !flag(ormolu) || impl(ghc >= 9.14 )
15831591 buildable : False
15841592 exposed-modules : Ide.Plugin.Ormolu
15851593 hs-source-dirs : plugins/hls-ormolu-plugin/src
@@ -1599,7 +1607,8 @@ library hls-ormolu-plugin
15991607
16001608test-suite hls-ormolu-plugin-tests
16011609 import : defaults, pedantic, test-defaults, warnings
1602- if !flag(ormolu)
1610+ -- ormolu depends on ghc-lib-parser which doesn't support GHC 9.14
1611+ if !flag(ormolu) || impl(ghc >= 9.14 )
16031612 buildable : False
16041613 type : exitcode-stdio-1.0
16051614 hs-source-dirs : plugins/hls-ormolu-plugin/test
@@ -1628,14 +1637,16 @@ flag stylishHaskell
16281637 manual : True
16291638
16301639common stylishHaskell
1631- if flag(stylishHaskell)
1640+ -- stylish-haskell depends on ghc-lib-parser which doesn't support GHC 9.14
1641+ if flag(stylishHaskell) && !impl(ghc >= 9.14 )
16321642 build-depends : haskell-language-server :hls-stylish-haskell-plugin
16331643 cpp-options : -Dhls_stylishHaskell
16341644
16351645library hls-stylish-haskell-plugin
16361646 import : defaults, pedantic, warnings
16371647 -- https://github.com/haskell/stylish-haskell/issues/479
1638- if !flag(stylishHaskell)
1648+ -- stylish-haskell depends on ghc-lib-parser which doesn't support GHC 9.14
1649+ if !flag(stylishHaskell) || impl(ghc >= 9.14 )
16391650 buildable : False
16401651 exposed-modules : Ide.Plugin.StylishHaskell
16411652 hs-source-dirs : plugins/hls-stylish-haskell-plugin/src
@@ -1653,7 +1664,8 @@ library hls-stylish-haskell-plugin
16531664
16541665test-suite hls-stylish-haskell-plugin-tests
16551666 import : defaults, pedantic, test-defaults, warnings
1656- if !flag(stylishHaskell)
1667+ -- stylish-haskell depends on ghc-lib-parser which doesn't support GHC 9.14
1668+ if !flag(stylishHaskell) || impl(ghc >= 9.14 )
16571669 buildable : False
16581670 type : exitcode-stdio-1.0
16591671 hs-source-dirs : plugins/hls-stylish-haskell-plugin/test
0 commit comments