Skip to content

Commit 7120a77

Browse files
committed
Disable Brittany for GHC Versions >= 8.10.1
1 parent f3da326 commit 7120a77

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

exe/Main.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ idePlugins includeExamples = pluginDescToIdePlugins allPlugins
106106
, Ormolu.descriptor "ormolu"
107107
, StylishHaskell.descriptor "stylish-haskell"
108108
#if AGPL
109+
#if !MIN_VERSION_ghc(8,10,1)
109110
, Brittany.descriptor "brittany"
111+
#endif
110112
#endif
111113
, Eval.descriptor "eval"
112114
]

haskell-language-server.cabal

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,11 @@ library
9494
else
9595
build-depends: unix
9696
if flag(agpl)
97-
build-depends:
98-
brittany
99-
exposed-modules:
100-
Ide.Plugin.Brittany
97+
if impl(ghc < 8.10)
98+
build-depends:
99+
brittany
100+
exposed-modules:
101+
Ide.Plugin.Brittany
101102

102103
ghc-options:
103104
-Wall

0 commit comments

Comments
 (0)