Skip to content

Commit fe467e6

Browse files
authored
Allow ormolu 0.2 and fix compatibility with GHC 9 (#2084)
Ormolu 0.2 fixes compatibility with GHC 9. Turns out adding `ghc-api-compat` here is enough for GHC 9 compatibility.
1 parent dab8d00 commit fe467e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/hls-ormolu-plugin/hls-ormolu-plugin.cabal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ library
2323
, base >=4.12 && <5
2424
, filepath
2525
, ghc
26+
, ghc-api-compat
2627
, ghc-boot-th
2728
, ghcide >=1.2 && <1.5
2829
, hls-plugin-api >=1.1 && <1.3
2930
, lens
3031
, lsp
31-
, ormolu ^>=0.1.2
32+
, ormolu ^>=0.1.2 || ^>= 0.2
3233
, text
3334

3435
default-language: Haskell2010

0 commit comments

Comments
 (0)