diff --git a/exe/Main.hs b/exe/Main.hs index 081f261cac..329121ddcc 100644 --- a/exe/Main.hs +++ b/exe/Main.hs @@ -106,7 +106,9 @@ idePlugins includeExamples = pluginDescToIdePlugins allPlugins , Ormolu.descriptor "ormolu" , StylishHaskell.descriptor "stylish-haskell" #if AGPL +#if !MIN_VERSION_ghc(8,10,1) , Brittany.descriptor "brittany" +#endif #endif , Eval.descriptor "eval" ] diff --git a/haskell-language-server.cabal b/haskell-language-server.cabal index 120f1dcce2..8787a86df7 100644 --- a/haskell-language-server.cabal +++ b/haskell-language-server.cabal @@ -19,7 +19,7 @@ extra-source-files: flag agpl Description: Enable AGPL dependencies Default: True - Manual: False + Manual: True flag pedantic Description: Enable -Werror @@ -95,10 +95,11 @@ library else build-depends: unix if flag(agpl) - build-depends: - brittany - exposed-modules: - Ide.Plugin.Brittany + if impl(ghc < 8.10) + build-depends: + brittany + exposed-modules: + Ide.Plugin.Brittany ghc-options: -Wall