Skip to content

Commit 34dde12

Browse files
committed
Extract module name plugin
1 parent 0439024 commit 34dde12

27 files changed

+450
-203
lines changed

cabal.project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ packages:
2020
./plugins/hls-splice-plugin
2121
./plugins/hls-floskell-plugin
2222
./plugins/hls-pragmas-plugin
23+
./plugins/hls-module-name-plugin
2324
tests: true
2425

2526
package *

haskell-language-server.cabal

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ extra-source-files:
2525
test/testdata/hlint/ignore/.hlint.yaml
2626
test/testdata/**/*.h
2727
test/testdata/**/*.hs
28-
test/testdata/**/*.expected
2928

3029
flag pedantic
3130
description: Enable -Werror
@@ -231,8 +230,7 @@ common hlint
231230

232231
common moduleName
233232
if flag(moduleName) || flag(all-plugins)
234-
hs-source-dirs: plugins/default/src
235-
other-modules: Ide.Plugin.ModuleName
233+
build-depends: hls-module-name-plugin ^>= 1.0.0.0
236234
cpp-options: -DmoduleName
237235

238236
common pragmas
@@ -259,9 +257,7 @@ common fourmolu
259257

260258
common ormolu
261259
if flag(ormolu) || flag(all-formatters)
262-
hs-source-dirs: plugins/default/src
263-
other-modules: Ide.Plugin.Ormolu
264-
build-depends: ormolu ^>=0.1.2
260+
build-depends: hls-ormolu-plugin ^>= 1.0.0.0
265261
cpp-options: -Dormolu
266262

267263
common stylishHaskell
@@ -414,7 +410,6 @@ test-suite func-test
414410
FunctionalLiquid
415411
HieBios
416412
Highlight
417-
ModuleName
418413
Progress
419414
Reference
420415
Rename

nix/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ let
4444
hls-tactics-plugin = gitignoreSource ../plugins/hls-tactics-plugin;
4545
hls-floskell-plugin = gitignoreSource ../plugins/hls-floskell-plugin;
4646
hls-pragmas-plugin = gitignoreSource ../plugins/hls-pragmas-plugin;
47+
hls-module-name-plugin = gitignoreSource ../plugins/hls-module-name-plugin;
4748
};
4849
gitignoreSource = (import sources.gitignore { inherit (pkgs) lib; }).gitignoreSource;
4950
extended = haskellPackages:

plugins/default/src/Ide/Plugin/ModuleName.hs

Lines changed: 0 additions & 157 deletions
This file was deleted.

0 commit comments

Comments
 (0)