Skip to content

Commit fe6551b

Browse files
authored
Remove Floskell support (#4838)
* Remove Floskell support * Fix failing test (use 4-space for Fourmolu)
1 parent f555eea commit fe6551b

23 files changed

Lines changed: 29 additions & 245 deletions

.github/workflows/test.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,6 @@ jobs:
151151
name: Test hls-refactor-plugin
152152
run: cabal test ${CABAL_ARGS} hls-refactor-plugin-tests || cabal test ${CABAL_ARGS} hls-refactor-plugin-tests
153153

154-
# TODO enable when it supports 9.10
155-
- if: matrix.test && matrix.ghc != '9.10' && matrix.ghc != '9.12' && matrix.ghc != '9.14' && matrix.ghc != '9.10.2'
156-
name: Test hls-floskell-plugin
157-
run: cabal test ${CABAL_ARGS} hls-floskell-plugin-tests || cabal test ${CABAL_ARGS} hls-floskell-plugin-tests
158-
159154
- if: matrix.test
160155
name: Test hls-class-plugin
161156
run: cabal test ${CABAL_ARGS} hls-class-plugin-tests || cabal test ${CABAL_ARGS} hls-class-plugin-tests

CODEOWNERS

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@
2121
/plugins/hls-code-range-plugin @kokobd
2222
/plugins/hls-eval-plugin
2323
/plugins/hls-explicit-fixity-plugin
24-
/plugins/hls-explicit-imports-plugin
24+
/plugins/hls-explicit-imports-plugin
2525
/plugins/hls-explicit-record-fields-plugin @ozkutuk
26-
/plugins/hls-floskell-plugin @peterbecich
2726
/plugins/hls-fourmolu-plugin @georgefst
2827
/plugins/hls-gadt-plugin @July541
2928
/plugins/hls-hlint-plugin @eddiemundo
@@ -43,8 +42,8 @@
4342
/plugins/hls-stylish-haskell-plugin @michaelpj
4443

4544
# Benchmarking
46-
/shake-bench
47-
/bench
45+
/shake-bench
46+
/bench
4847

4948
# Docs
5049
/docs @michaelpj

bench/config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ configurations:
180180
- codeRange
181181
- eval
182182
- explicitFixity
183-
- floskell
184183
- fourmolu
185184
- gadt
186185
- ghcide-code-actions-bindings
@@ -205,7 +204,6 @@ configurations:
205204
# - codeRange
206205
# - eval
207206
# - explicitFixity
208-
# # - floskell
209207
# # - fourmolu
210208
# - gadt
211209
# - ghcide-code-actions-bindings

docs/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This option obviously would not make sense for language servers for other langua
4040

4141
Here is a list of the additional settings currently supported by `haskell-language-server`, along with their setting key (you may not need to know this) and default:
4242

43-
- Formatting provider (`haskell.formattingProvider`, default `ormolu`): what formatter to use; one of `floskell`, `ormolu`, `fourmolu`, or `stylish-haskell`.
43+
- Formatting provider (`haskell.formattingProvider`, default `ormolu`): what formatter to use; one of `ormolu`, `fourmolu`, or `stylish-haskell`.
4444
- Cabal formatting provider (`haskell.cabalFormattingProvider`, default `cabal-gild`): what formatter to use for cabal files; one of `cabal-gild` or `cabal-fmt`.
4545
- Max completions (`haskell.maxCompletions`, default 40): maximum number of completions sent to the LSP client.
4646
- Check project (`haskell.checkProject`, default true): whether to typecheck the entire project on initial load. As it is activated by default could drive to bad performance in large projects.

docs/contributing/plugin-tutorial.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ import GHC.Generics (Generic)
7575

7676
The HLS codebase includes several plugins (found in `./plugins`). For example:
7777

78-
- The `ormolu`, `fourmolu`, `floskell` and `stylish-haskell` plugins used to format code
78+
- The `ormolu`, `fourmolu`, and `stylish-haskell` plugins used to format code
7979
- The `eval` plugin, a code lens provider to evaluate code in comments
8080
- The `retrie` plugin, a code action provider to execute retrie commands
8181

@@ -95,7 +95,6 @@ I recommend looking at the existing plugins for inspiration and reference. A few
9595
allPlugins =
9696
[ GhcIde.descriptor "ghcide"
9797
, Pragmas.descriptor "pragmas"
98-
, Floskell.descriptor "floskell"
9998
, Fourmolu.descriptor "fourmolu"
10099
, Ormolu.descriptor "ormolu"
101100
, StylishHaskell.descriptor "stylish-haskell"

docs/features.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ The default Haskell code formatter is `ormolu`, and the Haskell formatter can be
132132

133133
| Formatter | Provided by |
134134
| --------------- | ---------------------------- |
135-
| Floskell | `hls-floskell-plugin` |
136135
| Fourmolu | `hls-fourmolu-plugin` |
137136
| Ormolu | `hls-ormolu-plugin` |
138137
| Stylish Haskell | `hls-stylish-haskell-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-stylish-haskell-plugin` | 2 | 9.14.1 |
6666
| `hls-overloaded-record-dot-plugin` | 2 | |
6767
| `hls-semantic-tokens-plugin` | 2 | |
68-
| `hls-floskell-plugin` | 3 | 9.10.1, 9.12.2, 9.14.1 |
6968
| `hls-stan-plugin` | 3 | 9.12.2, 9.14.1 |
7069
| `hls-retrie-plugin` | 3 | 9.10.1, 9.12.2, 9.14.1 |
7170
| `hls-splice-plugin` | 3 | 9.10.1, 9.12.2, 9.14.1 |

haskell-language-server.cabal

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,48 +1469,6 @@ test-suite hls-overloaded-record-dot-plugin-tests
14691469
, hls-test-utils == 2.13.0.0
14701470

14711471

1472-
-----------------------------
1473-
-- floskell plugin
1474-
-----------------------------
1475-
1476-
flag floskell
1477-
description: Enable floskell plugin
1478-
default: True
1479-
manual: True
1480-
1481-
common floskell
1482-
if flag(floskell) && (impl(ghc < 9.10) || flag(ignore-plugins-ghc-bounds))
1483-
build-depends: haskell-language-server:hls-floskell-plugin
1484-
cpp-options: -Dhls_floskell
1485-
1486-
library hls-floskell-plugin
1487-
import: defaults, pedantic, warnings
1488-
-- https://github.com/ennocramer/floskell/pull/82
1489-
if !(flag(floskell) && (impl(ghc < 9.10) || flag(ignore-plugins-ghc-bounds)))
1490-
buildable: False
1491-
exposed-modules: Ide.Plugin.Floskell
1492-
hs-source-dirs: plugins/hls-floskell-plugin/src
1493-
build-depends:
1494-
, floskell ^>=0.11.0
1495-
, ghcide == 2.13.0.0
1496-
, hls-plugin-api == 2.13.0.0
1497-
, lsp-types ^>=2.3
1498-
, mtl
1499-
, text
1500-
1501-
1502-
test-suite hls-floskell-plugin-tests
1503-
import: defaults, pedantic, test-defaults, warnings
1504-
if !(flag(floskell) && (impl(ghc < 9.10) || flag(ignore-plugins-ghc-bounds)))
1505-
buildable: False
1506-
type: exitcode-stdio-1.0
1507-
hs-source-dirs: plugins/hls-floskell-plugin/test
1508-
main-is: Main.hs
1509-
build-depends:
1510-
, filepath
1511-
, haskell-language-server:hls-floskell-plugin
1512-
, hls-test-utils == 2.13.0.0
1513-
15141472
-----------------------------
15151473
-- fourmolu plugin
15161474
-----------------------------
@@ -1940,7 +1898,6 @@ library
19401898
, gadt
19411899
, explicitFixity
19421900
, explicitFields
1943-
, floskell
19441901
, fourmolu
19451902
, ormolu
19461903
, stylishHaskell
@@ -2097,8 +2054,6 @@ test-suite func-test
20972054
if flag(eval)
20982055
cpp-options: -Dhls_eval
20992056
-- formatters
2100-
if flag(floskell) && (impl(ghc < 9.10) || flag(ignore-plugins-ghc-bounds))
2101-
cpp-options: -Dhls_floskell
21022057
if flag(fourmolu) && (impl(ghc < 9.14) || flag(ignore-plugins-ghc-bounds))
21032058
cpp-options: -Dhls_fourmolu
21042059
if flag(ormolu) && (impl(ghc < 9.14) || flag(ignore-plugins-ghc-bounds))

hls-plugin-api/src/Ide/Types.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ instance Default Config where
197197
{ checkParents = CheckOnSave
198198
, checkProject = True
199199
, formattingProvider = "ormolu"
200-
-- , formattingProvider = "floskell"
201200
-- , formattingProvider = "stylish-haskell"
202201
, cabalFormattingProvider = "cabal-gild"
203202
-- , cabalFormattingProvider = "cabal-fmt"

plugins/hls-floskell-plugin/src/Ide/Plugin/Floskell.hs

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

0 commit comments

Comments
 (0)