Skip to content

Commit 85cb168

Browse files
Bodigrimpepeiborra
authored andcommitted
hls-haddock-comments does not support ghc-exactprint >= 1.0 (haskell#2878)
* hls-haddock-comments does not support ghc-exactprint >= 1.0 And should be marked as such otherwise `cabal install haskell-language-server` generates an unbuildable plan * Try to make CI happy Co-authored-by: Pepe Iborra <[email protected]>
1 parent bba7171 commit 85cb168

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

cabal-ghc92.project

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ allow-newer:
7777
-- https://github.com/lspitzner/butcher/pull/8
7878
butcher:base,
7979

80+
hls-haddock-comments-plugin:ghc-exactprint,
81+
8082
implicit-hie-cradle:bytestring,
8183
implicit-hie-cradle:time,
8284

haskell-language-server.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ common callHierarchy
234234
cpp-options: -DcallHierarchy
235235

236236
common haddockComments
237-
if flag(haddockComments)
237+
if flag(haddockComments) && (impl(ghc < 9.2.1) || flag(ignore-plugins-ghc-bounds))
238238
build-depends: hls-haddock-comments-plugin ^>= 1.0
239239
cpp-options: -DhaddockComments
240240

plugins/hls-haddock-comments-plugin/hls-haddock-comments-plugin.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ library
2828
, base >=4.12 && <5
2929
, containers
3030
, ghc
31-
, ghc-exactprint
31+
, ghc-exactprint < 1
3232
, ghcide ^>=1.6 || ^>=1.7
3333
, hls-plugin-api ^>=1.3 || ^>=1.4
3434
, lsp-types

0 commit comments

Comments
 (0)