Skip to content

Commit

Permalink
Merge pull request #250 from fendor/cabal-flag-agpl
Browse files Browse the repository at this point in the history
Make the AGPL flag manual in cabal
  • Loading branch information
fendor authored Aug 5, 2020
2 parents bf94639 + 1f26704 commit 4cdafec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions exe/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ idePlugins includeExamples = pluginDescToIdePlugins allPlugins
, StylishHaskell.descriptor "stylish-haskell"
, Retrie.descriptor "retrie"
#if AGPL
#if !MIN_VERSION_ghc(8,10,1)
, Brittany.descriptor "brittany"
#endif
#endif
, Eval.descriptor "eval"
]
Expand Down
11 changes: 6 additions & 5 deletions haskell-language-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extra-source-files:
flag agpl
Description: Enable AGPL dependencies
Default: True
Manual: False
Manual: True

flag pedantic
Description: Enable -Werror
Expand Down Expand Up @@ -101,10 +101,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
Expand Down

0 comments on commit 4cdafec

Please sign in to comment.