Skip to content

Commit 4b475b0

Browse files
Bodigrimpepeiborra
andauthored
hls-haddock-comments does not support ghc-exactprint >= 1.0 (#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 5a6b079 commit 4b475b0

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Diff for: cabal-ghc92.project

+2
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

Diff for: haskell-language-server.cabal

+1-1
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

Diff for: plugins/hls-haddock-comments-plugin/hls-haddock-comments-plugin.cabal

+1-1
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)