Skip to content

Commit b6f2b74

Browse files
authored
Remove hls-retrie-plugin (#4839)
1 parent a3746c8 commit b6f2b74

31 files changed

Lines changed: 1 addition & 1106 deletions

.github/workflows/test.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,6 @@ jobs:
241241
name: Test hls-cabal-plugin test suite
242242
run: cabal test ${CABAL_ARGS} hls-cabal-plugin-tests || cabal test ${CABAL_ARGS} hls-cabal-plugin-tests
243243

244-
# TODO enable when it supports 9.10
245-
- if: matrix.test && matrix.ghc != '9.10' && matrix.ghc != '9.12' && matrix.ghc != '9.14' && matrix.ghc != '9.10.2'
246-
name: Test hls-retrie-plugin test suite
247-
run: cabal test ${CABAL_ARGS} hls-retrie-plugin-tests || cabal test ${CABAL_ARGS} hls-retrie-plugin-tests
248-
249244
- if: matrix.test
250245
name: Test hls-overloaded-record-dot-plugin test suite
251246
run: cabal test ${CABAL_ARGS} hls-overloaded-record-dot-plugin-tests || cabal test ${CABAL_ARGS} hls-overloaded-record-dot-plugin-tests

CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
/plugins/hls-qualify-imported-names-plugin @eddiemundo
3434
/plugins/hls-refactor-plugin @santiweight
3535
/plugins/hls-rename-plugin
36-
/plugins/hls-retrie-plugin @wz1000
3736
/plugins/hls-semantic-tokens-plugin @soulomoon
3837
/plugins/hls-signature-help-plugin @jian-lin
3938
/plugins/hls-splice-plugin @konn

bench/config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ configurations:
221221
# - pragmas
222222
# - qualifyImportedNames
223223
# - rename
224-
# - retrie
225224
# - splice
226225
# - stan
227226
# # - stylish-haskell

docs/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Here is a list of the additional settings currently supported by `haskell-langua
5252
Plugins have a generic config to control their behaviour. The schema of such config is:
5353

5454
- `haskell.plugin.${pluginName}.globalOn`: usually with default true. Whether the plugin is enabled at runtime or it is not. That is the option you might use if you want to disable completely a plugin.
55-
- Actual plugin names are: `ghcide-code-actions-fill-holes`, `ghcide-completions`, `ghcide-hover-and-symbols`, `ghcide-type-lenses`, `ghcide-code-actions-type-signatures`, `ghcide-code-actions-bindings`, `ghcide-code-actions-imports-exports`, `eval`, `moduleName`, `pragmas`, `importLens`, `class`, `hlint`, `retrie`, `rename`, `splice`, `stan`, `signatureHelp`.
55+
- Actual plugin names are: `ghcide-code-actions-fill-holes`, `ghcide-completions`, `ghcide-hover-and-symbols`, `ghcide-type-lenses`, `ghcide-code-actions-type-signatures`, `ghcide-code-actions-bindings`, `ghcide-code-actions-imports-exports`, `eval`, `moduleName`, `pragmas`, `importLens`, `class`, `hlint`, `rename`, `splice`, `stan`, `signatureHelp`.
5656
- So to disable the import lens with an explicit list of module definitions you could set `haskell.plugin.importLens.globalOn: false`
5757
- `haskell.plugin.${pluginName}.${lspCapability}On`: usually with default true. Whether a concrete plugin capability is enabled.
5858
- Capabilities are the different ways a lsp server can interact with the editor. The current available capabilities of the server are: `callHierarchy`, `codeActions`, `codeLens`, `diagnostics`, `hover`, `symbols`, `completion`, `rename`.

docs/contributing/plugin-tutorial.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ In the last couple of months, I have written various HLS plugins, including:
1616
1. Suggest imports for variables not in scope,
1717
2. Remove redundant imports,
1818
3. Evaluate code in comments (à la [doctest](https://docs.python.org/3/library/doctest.html)),
19-
4. Integrate the [retrie](https://github.com/facebookincubator/retrie) refactoring library.
20-
2119
These plugins are small but meaningful steps towards a more polished IDE experience.
2220
While writing them, I didn't have to worry about performance, UI, or distribution; another tool (usually GHC) always did the heavy lifting.
2321

@@ -77,7 +75,6 @@ The HLS codebase includes several plugins (found in `./plugins`). For example:
7775

7876
- The `ormolu`, `fourmolu`, and `stylish-haskell` plugins used to format code
7977
- The `eval` plugin, a code lens provider to evaluate code in comments
80-
- The `retrie` plugin, a code action provider to execute retrie commands
8178

8279
I recommend looking at the existing plugins for inspiration and reference. A few conventions shared by all plugins are:
8380

@@ -98,7 +95,6 @@ I recommend looking at the existing plugins for inspiration and reference. A few
9895
, Fourmolu.descriptor "fourmolu"
9996
, Ormolu.descriptor "ormolu"
10097
, StylishHaskell.descriptor "stylish-haskell"
101-
, Retrie.descriptor "retrie"
10298
, Eval.descriptor "eval"
10399
, NewPlugin.descriptor "new-plugin" -- Add new plugins here.
104100
]

docs/features.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -237,24 +237,6 @@ Code action kind: `quickfix`
237237

238238
Adds placeholders for missing class methods in a class instance definition.
239239

240-
### Unfold definition
241-
242-
Provided by: `hls-retrie-plugin`
243-
244-
Code action kind: `refactor.extract`
245-
246-
Extracts a definition from the code.
247-
248-
### Fold definition
249-
250-
Provided by: `hls-retrie-plugin`
251-
252-
Code action kind: `refactor.inline`
253-
254-
Inlines a definition from the code.
255-
256-
![Retrie Demo](https://i.imgur.com/Ev7B87k.gif)
257-
258240
### Insert contents of Template Haskell splice
259241

260242
Provided by: `hls-splice-plugin`

docs/support/plugin-support.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ For example, a plugin to provide a formatter which has itself been abandoned has
6565
| `hls-overloaded-record-dot-plugin` | 2 | |
6666
| `hls-semantic-tokens-plugin` | 2 | |
6767
| `hls-stan-plugin` | 3 | 9.12.2, 9.14.1 |
68-
| `hls-retrie-plugin` | 3 | 9.10.1, 9.12.2, 9.14.1 |
6968
| `hls-splice-plugin` | 3 | 9.10.1, 9.12.2, 9.14.1 |
7069

7170
[1]: HLint is incompatible with GHC 9.10 series. See the issue [#4674](https://github.com/haskell/haskell-language-server/issues/4674) for discussion and explanation.

haskell-language-server.cabal

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -636,66 +636,6 @@ test-suite hls-rename-plugin-tests
636636
, lsp-types
637637
, text
638638

639-
-----------------------------
640-
-- retrie plugin
641-
-----------------------------
642-
643-
flag retrie
644-
description: Enable retrie plugin
645-
default: True
646-
manual: True
647-
648-
common retrie
649-
if flag(retrie) && (impl(ghc < 9.10) || flag(ignore-plugins-ghc-bounds))
650-
build-depends: haskell-language-server:hls-retrie-plugin
651-
cpp-options: -Dhls_retrie
652-
653-
library hls-retrie-plugin
654-
import: defaults, pedantic, warnings
655-
if !(flag(retrie) && (impl(ghc < 9.10) || flag(ignore-plugins-ghc-bounds)))
656-
buildable: False
657-
exposed-modules: Ide.Plugin.Retrie
658-
hs-source-dirs: plugins/hls-retrie-plugin/src
659-
build-depends:
660-
, aeson
661-
, bytestring
662-
, containers
663-
, extra
664-
, ghc
665-
, ghcide == 2.14.0.0
666-
, hashable
667-
, hls-plugin-api == 2.14.0.0
668-
, haskell-language-server:hls-refactor-plugin
669-
, lens
670-
, lsp
671-
, lsp-types
672-
, mtl
673-
, retrie >=0.1.1.0
674-
, safe-exceptions
675-
, stm
676-
, text
677-
, text-rope
678-
, transformers
679-
, unordered-containers
680-
681-
default-extensions:
682-
DataKinds
683-
684-
test-suite hls-retrie-plugin-tests
685-
import: defaults, pedantic, test-defaults, warnings
686-
if !(flag(retrie) && (impl(ghc < 9.10) || flag(ignore-plugins-ghc-bounds)))
687-
buildable: False
688-
type: exitcode-stdio-1.0
689-
hs-source-dirs: plugins/hls-retrie-plugin/test
690-
main-is: Main.hs
691-
build-depends:
692-
, containers
693-
, filepath
694-
, hls-plugin-api
695-
, haskell-language-server:{hls-refactor-plugin, hls-retrie-plugin}
696-
, hls-test-utils == 2.14.0.0
697-
, text
698-
699639
-----------------------------
700640
-- hlint plugin
701641
-----------------------------
@@ -1842,7 +1782,6 @@ library
18421782
, eval
18431783
, importLens
18441784
, rename
1845-
, retrie
18461785
, hlint
18471786
, stan
18481787
, signatureHelp

0 commit comments

Comments
 (0)