Skip to content

Commit 5843a66

Browse files
committed
stylish-haskell with ghc9.0
1 parent f79967b commit 5843a66

File tree

5 files changed

+19
-12
lines changed

5 files changed

+19
-12
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ jobs:
190190
name: Test hls-splice-plugin
191191
run: cabal test hls-splice-plugin --test-options="$TEST_OPTS" || cabal test hls-splice-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-splice-plugin --test-options="$TEST_OPTS"
192192

193-
- if: matrix.test && matrix.ghc != '9.0.1' && matrix.ghc != '9.0.2' && matrix.ghc != '9.2.2'
193+
- if: matrix.test && matrix.ghc != '9.2.2'
194194
name: Test hls-stylish-haskell-plugin
195195
run: cabal test hls-stylish-haskell-plugin --test-options="$TEST_OPTS" || cabal test hls-stylish-haskell-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-stylish-haskell-plugin --test-options="$TEST_OPTS"
196196

cabal-ghc90.project

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,21 @@ package *
3535
ghc-options: -haddock
3636
test-show-details: direct
3737

38+
39+
-- stylish-haskell 9.0
40+
source-repository-package
41+
type: git
42+
location: https://github.com/July541/stylish-haskell.git
43+
tag: b08a85716b991359a46a32e8e7ba5780664d31ae
44+
3845
write-ghc-environment-files: never
3946

4047
index-state: 2022-03-08T10:53:01Z
4148

4249
constraints:
4350
-- These plugins don't work on GHC9 yet
4451
-- Add a plugin needs remove the -flag but also update ghc bounds in hls.cabal
45-
haskell-language-server +ignore-plugins-ghc-bounds -stylishhaskell,
52+
haskell-language-server +ignore-plugins-ghc-bounds,
4653
ghc-lib-parser ^>= 9.0
4754

4855
-- although we are not building all plugins cabal solver phase is run for all packages
@@ -57,10 +64,6 @@ allow-newer:
5764
-- https://github.com/lspitzner/butcher/pull/8
5865
butcher:base,
5966

60-
stylish-haskell:Cabal,
61-
stylish-haskell:ghc-lib-parser,
62-
stylish-haskell:aeson,
63-
6467
-- ghc-9.0.2 specific
6568
-- for ghcide:test via ghc-typelits-knownnat
6669
ghc-typelits-natnormalise:ghc-bignum

configuration-ghc-901.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
let
55
disabledPlugins = [
66
"hls-brittany-plugin"
7-
"hls-stylish-haskell-plugin"
87
];
98

109
hpkgsOverride = hself: hsuper:
@@ -20,7 +19,6 @@ let
2019
hself.callCabal2nixWithOptions "haskell-language-server" ./.
2120
(pkgs.lib.concatStringsSep " " [
2221
"-f-brittany"
23-
"-f-stylishhaskell"
2422
]) { };
2523

2624
# YOLO

stack-9.0.1.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ packages:
2121
- ./plugins/hls-splice-plugin
2222
- ./plugins/hls-tactics-plugin
2323
- ./plugins/hls-brittany-plugin
24-
# - ./plugins/hls-stylish-haskell-plugin
24+
- ./plugins/hls-stylish-haskell-plugin
2525
- ./plugins/hls-floskell-plugin
2626
- ./plugins/hls-fourmolu-plugin
2727
- ./plugins/hls-pragmas-plugin
@@ -65,6 +65,10 @@ extra-deps:
6565
- statestack-0.3
6666
- operational-0.2.4.1
6767

68+
# stylish-haskell 9.0
69+
- github: July541/stylish-haskell
70+
commit: b08a85716b991359a46a32e8e7ba5780664d31ae
71+
6872
# currently needed for ghcide>extra, etc.
6973
allow-newer: true
7074

@@ -84,7 +88,6 @@ flags:
8488
pedantic: true
8589

8690
ignore-plugins-ghc-bounds: true
87-
stylishHaskell: false
8891

8992
retrie:
9093
BuildExecutable: false

stack-9.0.2.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ packages:
2121
- ./plugins/hls-splice-plugin
2222
- ./plugins/hls-tactics-plugin
2323
- ./plugins/hls-brittany-plugin
24-
# - ./plugins/hls-stylish-haskell-plugin
24+
- ./plugins/hls-stylish-haskell-plugin
2525
- ./plugins/hls-floskell-plugin
2626
- ./plugins/hls-fourmolu-plugin
2727
- ./plugins/hls-pragmas-plugin
@@ -87,6 +87,10 @@ extra-deps:
8787
- unix-2.7.2.2
8888
- Win32-2.12.0.1
8989

90+
# stylish-haskell 9.0
91+
- github: July541/stylish-haskell
92+
commit: b08a85716b991359a46a32e8e7ba5780664d31ae
93+
9094
# currently needed for ghcide>extra, etc.
9195
allow-newer: true
9296

@@ -106,7 +110,6 @@ flags:
106110
pedantic: true
107111

108112
ignore-plugins-ghc-bounds: true
109-
stylishHaskell: false
110113

111114
retrie:
112115
BuildExecutable: false

0 commit comments

Comments
 (0)