Skip to content

Add CPP Options for Stylish Haskell & Brittany Formatters #1620

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 26, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exe/Plugins.hs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ idePlugins includeExamples = pluginDescToIdePlugins allPlugins
#if retrie
Retrie.descriptor "retrie" :
#endif
#if AGPL && brittany
#if brittany
Brittany.descriptor "brittany" :
#endif
#if class
Expand Down
2 changes: 2 additions & 0 deletions haskell-language-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,12 @@ common ormolu
common stylishHaskell
if flag(stylishHaskell) || flag(all-formatters)
build-depends: hls-stylish-haskell-plugin ^>= 1.0.0.0
cpp-options: -DstylishHaskell

common brittany
if (flag(brittany) || flag(all-formatters))
build-depends: hls-brittany-plugin ^>= 1.0.0.0
cpp-options: -Dbrittany

executable haskell-language-server
import: common-deps
Expand Down