diff --git a/cabal-ghc92.project b/cabal-ghc92.project index c3f074aba4..6911f59bea 100644 --- a/cabal-ghc92.project +++ b/cabal-ghc92.project @@ -77,6 +77,8 @@ allow-newer: -- https://github.com/lspitzner/butcher/pull/8 butcher:base, + hls-haddock-comments-plugin:ghc-exactprint, + implicit-hie-cradle:bytestring, implicit-hie-cradle:time, diff --git a/haskell-language-server.cabal b/haskell-language-server.cabal index 9a6ce96c6a..5fc524b9d9 100644 --- a/haskell-language-server.cabal +++ b/haskell-language-server.cabal @@ -234,7 +234,7 @@ common callHierarchy cpp-options: -DcallHierarchy common haddockComments - if flag(haddockComments) + if flag(haddockComments) && (impl(ghc < 9.2.1) || flag(ignore-plugins-ghc-bounds)) build-depends: hls-haddock-comments-plugin ^>= 1.0 cpp-options: -DhaddockComments diff --git a/plugins/hls-haddock-comments-plugin/hls-haddock-comments-plugin.cabal b/plugins/hls-haddock-comments-plugin/hls-haddock-comments-plugin.cabal index 793e751074..e250aa16be 100644 --- a/plugins/hls-haddock-comments-plugin/hls-haddock-comments-plugin.cabal +++ b/plugins/hls-haddock-comments-plugin/hls-haddock-comments-plugin.cabal @@ -28,7 +28,7 @@ library , base >=4.12 && <5 , containers , ghc - , ghc-exactprint + , ghc-exactprint < 1 , ghcide ^>=1.6 || ^>=1.7 , hls-plugin-api ^>=1.3 || ^>=1.4 , lsp-types