Skip to content

Commit bcb83e9

Browse files
authored
Remove some buildability blockers that aren't needed (#3899)
* Floskell buildable on 9.6 * Ormolu supports 9.8 * Fourmolu supports 9.8 * Fix some conditional logic * Fix stack * Fix a cabal file * more fix stack * More * Grumble spelling * More stack * Argh * Bump index-state, remove some allow-newers * boo * More * Redo stack deps entirely
1 parent 4415e81 commit bcb83e9

File tree

8 files changed

+26
-47
lines changed

8 files changed

+26
-47
lines changed

cabal.project

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ packages:
3535
./plugins/hls-refactor-plugin
3636
./plugins/hls-overloaded-record-dot-plugin
3737

38-
index-state: 2023-12-10T23:30:17Z
38+
index-state: 2023-12-13T00:00:00Z
3939

4040
tests: True
4141
test-show-details: direct
@@ -96,12 +96,6 @@ if impl(ghc >= 9.7)
9696
ghc-trace-events:text,
9797
-- https://github.com/haskell-primitive/primitive-unlifted/issues/39
9898
primitive-unlifted:bytestring,
99-
-- https://github.com/obsidiansystems/constraints-extras/issues/54
100-
constraints-extras:base,
101-
constraints-extras:template-haskell,
10299
-- https://github.com/obsidiansystems/commutative-semigroups/issues/13
103100
commutative-semigroups:base,
104101
commutative-semigroups:template-haskell,
105-
-- https://github.com/kcsongor/generic-lens/issues/158
106-
generic-lens:text,
107-
generic-lens-core:text,

docs/support/plugin-support.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ For example, a plugin to provide a formatter which has itself been abandoned has
5252
| `hls-eval-plugin` | 2 | |
5353
| `hls-explicit-fixity-plugin` | 2 | |
5454
| `hls-explicit-record-fields-plugin` | 2 | |
55-
| `hls-fourmolu-plugin` | 2 | 9.8 |
55+
| `hls-fourmolu-plugin` | 2 | |
5656
| `hls-gadt-plugin` | 2 | 9.8 |
5757
| `hls-hlint-plugin` | 2 | 9.8 |
5858
| `hls-module-name-plugin` | 2 | |
5959
| `hls-qualify-imported-names-plugin` | 2 | |
60-
| `hls-ormolu-plugin` | 2 | 9.8 |
60+
| `hls-ormolu-plugin` | 2 | |
6161
| `hls-rename-plugin` | 2 | 9.8 |
6262
| `hls-stylish-haskell-plugin` | 2 | 9.8 |
6363
| `hls-overloaded-record-dot-plugin` | 2 | |
64-
| `hls-floskell-plugin` | 3 | 9.6, 9.8 |
64+
| `hls-floskell-plugin` | 3 | 9.8 |
6565
| `hls-stan-plugin` | 3 | 9.2.(4-8) |
6666
| `hls-retrie-plugin` | 3 | 9.8 |
6767
| `hls-splice-plugin` | 3 | 9.8 |

haskell-language-server.cabal

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,17 +309,17 @@ common overloadedRecordDot
309309
-- formatters
310310

311311
common floskell
312-
if flag(floskell) && impl(ghc < 9.5)
312+
if flag(floskell) && (impl(ghc < 9.7) || flag(ignore-plugins-ghc-bounds))
313313
build-depends: hls-floskell-plugin == 2.5.0.0
314314
cpp-options: -Dhls_floskell
315315

316316
common fourmolu
317-
if flag(fourmolu) && (impl(ghc < 9.8.0) || flag(ignore-plugins-ghc-bounds))
317+
if flag(fourmolu)
318318
build-depends: hls-fourmolu-plugin == 2.5.0.0
319319
cpp-options: -Dhls_fourmolu
320320

321321
common ormolu
322-
if flag(ormolu) && impl(ghc < 9.7)
322+
if flag(ormolu)
323323
build-depends: hls-ormolu-plugin == 2.5.0.0
324324
cpp-options: -Dhls_ormolu
325325

@@ -556,7 +556,7 @@ test-suite func-test
556556
if flag(eval)
557557
cpp-options: -Dhls_eval
558558
-- formatters
559-
if flag(floskell) && (impl(ghc < 9.2.1) || flag(ignore-plugins-ghc-bounds))
559+
if flag(floskell)
560560
cpp-options: -Dhls_floskell
561561
if flag(fourmolu)
562562
cpp-options: -Dhls_fourmolu

plugins/hls-floskell-plugin/hls-floskell-plugin.cabal

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ source-repository head
2121
location: https://github.com/haskell/haskell-language-server.git
2222

2323
library
24-
-- Plugins that need exactprint have not been updated for 9.8 yet
25-
if impl(ghc >= 9.5)
24+
-- floskell does not support GHC 9.8 yet
25+
if impl(ghc >= 9.7)
2626
buildable: False
2727
exposed-modules: Ide.Plugin.Floskell
2828
hs-source-dirs: src
2929
build-depends:
3030
, base >=4.12 && <5
31-
, floskell ^>=0.10
31+
, floskell ^>=0.10.8
3232
, ghcide == 2.5.0.0
3333
, hls-plugin-api == 2.5.0.0
3434
, lsp-types ^>=2.1
@@ -39,7 +39,7 @@ library
3939
default-language: Haskell2010
4040

4141
test-suite tests
42-
if impl(ghc >= 9.5)
42+
if impl(ghc >= 9.7)
4343
buildable: False
4444
type: exitcode-stdio-1.0
4545
default-language: Haskell2010

plugins/hls-fourmolu-plugin/hls-fourmolu-plugin.cabal

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ source-repository head
2323
location: git://github.com/haskell/haskell-language-server.git
2424

2525
library
26-
-- Plugins that need exactprint have not been updated for 9.8 yet
27-
if impl(ghc >= 9.8)
28-
buildable: False
29-
else
30-
buildable: True
3126
exposed-modules:
3227
Ide.Plugin.Fourmolu
3328
hs-source-dirs: src
@@ -48,21 +43,15 @@ library
4843

4944
if impl(ghc >= 9.0) && impl(ghc < 9.2)
5045
build-depends: fourmolu ^>= 0.11
51-
elif impl(ghc >= 9.2) && impl(ghc < 9.8)
46+
else
5247
build-depends: fourmolu ^>= 0.14
53-
else
54-
buildable: False
5548

5649
-- fourmolu 0.9.0 fails to build on Windows CI for reasons unknown
5750
if impl(ghc >= 9.2) && os(windows) && impl(ghc < 9.4)
5851
build-depends: fourmolu > 0.9.0.0 || < 0.9.0.0
5952
default-language: Haskell2010
6053

6154
test-suite tests
62-
if impl(ghc >= 9.8)
63-
buildable: False
64-
else
65-
buildable: True
6655
type: exitcode-stdio-1.0
6756
default-language: Haskell2010
6857
hs-source-dirs: test

plugins/hls-ormolu-plugin/hls-ormolu-plugin.cabal

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ source-repository head
2323
location: https://github.com/haskell/haskell-language-server.git
2424

2525
library
26-
-- Plugins that need exactprint have not been updated for 9.8 yet
27-
if impl(ghc >= 9.7)
28-
buildable: False
2926
exposed-modules: Ide.Plugin.Ormolu
3027
hs-source-dirs: src
3128
build-depends:
@@ -47,8 +44,6 @@ library
4744
default-language: Haskell2010
4845

4946
test-suite tests
50-
if impl(ghc >= 9.7)
51-
buildable: False
5247
type: exitcode-stdio-1.0
5348
default-language: Haskell2010
5449
hs-source-dirs: test

plugins/hls-overloaded-record-dot-plugin/hls-overloaded-record-dot-plugin.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ common warnings
2222
ghc-options: -Wall
2323

2424
library
25+
import: warnings
2526
if impl(ghc < 9.2)
2627
buildable: False
2728
else
2829
buildable: True
29-
import: warnings
3030
exposed-modules: Ide.Plugin.OverloadedRecordDot
3131
build-depends:
3232
, base >=4.16 && <5

stack.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ packages:
2020
- ./plugins/hls-explicit-fixity-plugin
2121
- ./plugins/hls-explicit-imports-plugin
2222
- ./plugins/hls-explicit-record-fields-plugin
23-
# - ./plugins/hls-floskell-plugin
23+
- ./plugins/hls-floskell-plugin
2424
- ./plugins/hls-fourmolu-plugin
2525
- ./plugins/hls-gadt-plugin
2626
- ./plugins/hls-hlint-plugin
@@ -42,22 +42,23 @@ ghc-options:
4242
allow-newer: true
4343

4444
extra-deps:
45-
- Cabal-syntax-3.10.1.0@sha256:bb835ebab577fd0f9c11dab96210dbb8d68ffc62652576f4b092563c345930e7,7434
46-
# - floskell-0.10.7
45+
- floskell-0.10.8
46+
- retrie-1.2.2
4747
- hiedb-0.4.4.0
48-
- hie-bios-0.13.1
4948
- implicit-hie-0.1.4.0
50-
- algebraic-graphs-0.6.1
51-
- retrie-1.2.2
52-
- hw-fingertree-0.1.2.1
53-
- hw-prim-0.6.3.2
54-
- ansi-terminal-0.11.5
49+
- hie-bios-0.13.1
5550
- lsp-2.3.0.0
5651
- lsp-test-0.16.0.1
5752
- lsp-types-2.1.0.0
53+
- attoparsec-aeson-2.1.0.0
54+
- hw-fingertree-0.1.2.1
55+
- integer-conversion-0.1.0.1
56+
- monad-dijkstra-0.1.1.4
57+
- hw-prim-0.6.3.2
58+
- optparse-applicative-0.17.1.0
5859

59-
# stan dependencies not found in the stackage snapshot
60-
- stan-0.1.0.2
60+
# stan and friends
61+
- stan-0.1.1.0
6162
- clay-0.14.0
6263
- colourista-0.1.0.2
6364
- dir-traverse-0.2.3.0

0 commit comments

Comments
 (0)