Skip to content

Commit afd4659

Browse files
committed
rename
1 parent 8dcdca2 commit afd4659

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

cabal.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ packages:
3333
./plugins/hls-code-range-plugin
3434
./plugins/hls-change-type-signature-plugin
3535
./plugins/hls-stan-plugin
36-
./plugins/hls-ecta-plugin
36+
./plugins/hls-hectare-plugin
3737
./plugins/hls-gadt-plugin
3838
./plugins/hls-explicit-fixity-plugin
3939
./plugins/hls-explicit-record-fields-plugin

haskell-language-server.cabal

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ flag haddockComments
8484
default: True
8585
manual: True
8686

87-
flag ecta
88-
description: Enable ecta plugin
87+
flag hectare
88+
description: Enable hectare plugin
8989
default: True
9090
manual: True
9191

@@ -246,10 +246,10 @@ common haddockComments
246246
build-depends: hls-haddock-comments-plugin ^>= 1.1
247247
cpp-options: -Dhls_haddockComments
248248

249-
common ecta
250-
if flag(ecta) && (impl(ghc < 9) || flag(ignore-plugins-ghc-bounds))
251-
build-depends: hls-ecta-plugin
252-
cpp-options: -Dhls_ecta
249+
common hectare
250+
if flag(hectare) && (impl(ghc < 9) || flag(ignore-plugins-ghc-bounds))
251+
build-depends: hls-hectare-plugin
252+
cpp-options: -Dhls_hectare
253253

254254
common eval
255255
if flag(eval) && (impl(ghc < 9.4.1) || flag(ignore-plugins-ghc-bounds))
@@ -385,7 +385,7 @@ library
385385
, changeTypeSignature
386386
, class
387387
, haddockComments
388-
, ecta
388+
, hectare
389389
, eval
390390
, importLens
391391
, refineImports
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
module Ide.Plugin.Ecta (descriptor) where
1+
module Ide.Plugin.Hectare (descriptor) where
22

33
import Development.IDE.GHC.Compat
44
import Development.IDE.GHC.Compat.Util
5-
import qualified ECTA.Plugin as Ecta
5+
import qualified ECTA.Plugin as GHC
66
import Ide.Types
77

88
descriptor :: PluginId -> PluginDescriptor s
@@ -13,9 +13,9 @@ descriptor pluginId = (defaultPluginDescriptor pluginId)
1313
staticPlugin :: DynFlagsModifications
1414
staticPlugin = mempty
1515
{ dynFlagsModifyGlobal = \df -> df
16-
{ staticPlugins = staticPlugins df <> [ectaPlugin]
16+
{ staticPlugins = staticPlugins df <> [hectarePlugin]
1717
}
1818
}
1919

20-
ectaPlugin :: StaticPlugin
21-
ectaPlugin = StaticPlugin $ PluginWithArgs Ecta.plugin []
20+
hectarePlugin :: StaticPlugin
21+
hectarePlugin = StaticPlugin $ PluginWithArgs GHC.plugin []
File renamed without changes.

plugins/hls-ecta-plugin/hls-ecta-plugin.cabal renamed to plugins/hls-hectare-plugin/hls-hectare-plugin.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cabal-version: 2.2
2-
name: hls-ecta-plugin
2+
name: hls-hectare-plugin
33
version: 1.0
44
synopsis: Code synthesis for typed holes via ECTA
55
description:
@@ -18,7 +18,7 @@ library
1818
buildable: True
1919
else
2020
buildable: False
21-
exposed-modules: Ide.Plugin.Ecta
21+
exposed-modules: Ide.Plugin.Hectare
2222
build-depends:
2323
base >=4.12 && <5
2424
, ecta-plugin >=0.1.1.2

src/HlsPlugins.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ import qualified Ide.Plugin.Class as Class
3232
import qualified Ide.Plugin.HaddockComments as HaddockComments
3333
#endif
3434

35-
#if hls_ecta
36-
import qualified Ide.Plugin.Ecta as Ecta
35+
#if hls_hectare
36+
import qualified Ide.Plugin.Hectare as Hectare
3737
#endif
3838

3939
#if hls_eval
@@ -194,8 +194,8 @@ idePlugins recorder = pluginDescToIdePlugins allPlugins
194194
#if hls_haddockComments
195195
let pId = "haddockComments" in HaddockComments.descriptor (pluginRecorder pId) pId:
196196
#endif
197-
#if hls_ecta
198-
Ecta.descriptor "ecta" :
197+
#if hls_hectare
198+
Hectare.descriptor "hectare" :
199199
#endif
200200
#if hls_eval
201201
let pId = "eval" in Eval.descriptor (pluginRecorder pId) pId:

0 commit comments

Comments
 (0)