Skip to content

Commit aa61fcc

Browse files
authored
Merge branch 'master' into filter-atpoint-results
2 parents 764f716 + d7690c5 commit aa61fcc

File tree

376 files changed

+1244
-539
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

376 files changed

+1244
-539
lines changed

Diff for: .github/workflows/hackage.yml

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
matrix:
2929
package: ["hie-compat", "hls-graph", "shake-bench",
3030
"hls-plugin-api", "ghcide", "hls-test-utils",
31+
"hls-cabal-plugin",
3132
"hls-brittany-plugin", "hls-floskell-plugin", "hls-fourmolu-plugin",
3233
"hls-ormolu-plugin", "hls-stylish-haskell-plugin",
3334
"hls-class-plugin", "hls-eval-plugin", "hls-explicit-imports-plugin",

Diff for: .github/workflows/test.yml

+4
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,10 @@ jobs:
259259
name: Test hls-cabal-fmt-plugin test suite
260260
run: cabal test hls-cabal-fmt-plugin --flag=isolateTests --test-options="$TEST_OPTS" || cabal test hls-cabal-fmt-plugin --flag=isolateTests --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-cabal-fmt-plugin --flag=isolateTests --test-options="$TEST_OPTS"
261261

262+
- if: matrix.test
263+
name: Test hls-cabal-plugin test suite
264+
run: cabal test hls-cabal-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-cabal-plugin --test-options="$TEST_OPTS"
265+
262266
test_post_job:
263267
if: always()
264268
runs-on: ubuntu-latest

Diff for: CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
# Plugins
1010
/plugins/hls-alternate-number-format-plugin @drsooch
1111
/plugins/hls-brittany-plugin @fendor
12+
/plugins/hls-cabal-plugin @fendor
1213
/plugins/hls-cabal-fmt-plugin @VeryMilkyJoe @fendor
1314
/plugins/hls-call-hierarchy-plugin @July541
1415
/plugins/hls-class-plugin @Ailrun

Diff for: cabal.project

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ packages:
88
./ghcide/test
99
./hls-plugin-api
1010
./hls-test-utils
11+
./plugins/hls-cabal-plugin
1112
./plugins/hls-cabal-fmt-plugin
1213
./plugins/hls-tactics-plugin
1314
./plugins/hls-brittany-plugin

Diff for: configuration-ghc-90.nix

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ let
1818
# https://github.com/nikita-volkov/ptr-poker/issues/11
1919
ptr-poker = hself.callCabal2nix "ptr-poker" inputs.ptr-poker { };
2020

21-
ghc-lib = hself.ghc-lib_9_2_2_20220307;
21+
ghc-lib = hself.ghc-lib_9_2_4_20220729;
2222
ghc-lib-parser = hself.ghc-lib-parser_9_2_4_20220729;
23-
ghc-lib-parser-ex = hself.ghc-lib-parser-ex_9_2_0_4;
23+
ghc-lib-parser-ex = hself.ghc-lib-parser-ex_9_2_1_1;
2424

2525
Cabal = hself.Cabal_3_6_3_0;
2626
ormolu = hself.ormolu_0_5_0_1;
27-
fourmolu = hself.fourmolu_0_6_0_0;
27+
2828
# Hlint is still broken
2929
hlint = doJailbreak (hself.callCabal2nix "hlint" inputs.hlint-34 { });
3030

Diff for: configuration-ghc-92.nix

-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ let
2424
# https://github.com/nikita-volkov/ptr-poker/issues/11
2525
ptr-poker = hself.callCabal2nix "ptr-poker" inputs.ptr-poker { };
2626

27-
ghc-exactprint =
28-
hself.callCabal2nix "ghc-exactprint" inputs.ghc-exactprint-150 { };
2927
# Hlint is still broken
3028
hlint = doJailbreak (hself.callCabal2nix "hlint" inputs.hlint { });
3129

Diff for: configuration-ghc-94.nix

-13
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,6 @@ let
3131

3232
stylish-haskell = appendConfigureFlag hsuper.stylish-haskell "-fghc-lib";
3333

34-
cereal = hsuper.callHackage "cereal" "0.5.8.3" {};
35-
base-compat = hsuper.callHackage "base-compat" "0.12.2" {};
36-
base-compat-batteries = hsuper.callHackage "base-compat-batteries" "0.12.2" {};
37-
hashable = hsuper.callHackage "hashable" "1.4.1.0" {};
38-
primitive = hsuper.callHackage "primitive" "0.7.4.0" {};
39-
ghc-check = hsuper.callHackage "ghc-check" "0.5.0.8" {};
40-
lens = hsuper.callHackage "lens" "5.2" {};
41-
integer-logarithms = hsuper.callHackage "integer-logarithms" "1.0.3.1" {};
42-
hiedb = hsuper.callHackage "hiedb" "0.4.2.0" {};
43-
hie-bios = hsuper.callHackage "hie-bios" "0.11.0" {};
44-
lsp = hsuper.callCabal2nix "lsp" inputs.lsp {};
45-
lsp-types = hsuper.callCabal2nix "lsp-types" inputs.lsp-types {};
46-
4734
# Re-generate HLS drv excluding some plugins
4835
haskell-language-server =
4936
hself.callCabal2nixWithOptions "haskell-language-server" ./.

Diff for: docs/features.md

+14
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ Provided by: `hls-stan-plugin`
4444

4545
Provides Stan hints as diagnostics.
4646

47+
### Cabal parse errors and warnings
48+
49+
Provided by: `hls-cabal-plugin`
50+
51+
Provides errors and warnings from Cabal as diagnostics
52+
4753
## Hovers
4854

4955
Provided by: `ghcide`
@@ -308,6 +314,14 @@ Expand record wildcards, explicitly listing all record fields as field puns.
308314

309315
![Explicit Wildcard Demo](../plugins/hls-explicit-record-fields-plugin/wildcard.gif)
310316

317+
### Unknown SPDX License suggestion
318+
319+
Provided by: `hls-cabal-plugin`
320+
321+
Code action kind: `quickfix`
322+
323+
Correct common misspelling of SPDX Licenses such as `BSD-3-Clause`.
324+
311325
## Code lenses
312326

313327
### Add type signature

0 commit comments

Comments
 (0)