Skip to content

Commit 1f26704

Browse files
committed
Disable Brittany for GHC Versions >= 8.10.1
1 parent 610b82e commit 1f26704

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Diff for: exe/Main.hs

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

Diff for: haskell-language-server.cabal

+5-4
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,11 @@ library
9595
else
9696
build-depends: unix
9797
if flag(agpl)
98-
build-depends:
99-
brittany
100-
exposed-modules:
101-
Ide.Plugin.Brittany
98+
if impl(ghc < 8.10)
99+
build-depends:
100+
brittany
101+
exposed-modules:
102+
Ide.Plugin.Brittany
102103

103104
ghc-options:
104105
-Wall

0 commit comments

Comments
 (0)