Skip to content

Commit bb0a541

Browse files
authored
Merge branch 'master' into batch-load-multi-read
2 parents 8c27e34 + 682d689 commit bb0a541

File tree

6 files changed

+28
-42
lines changed

6 files changed

+28
-42
lines changed

.github/workflows/bench.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ on:
1717
jobs:
1818
pre_job:
1919
runs-on: ubuntu-latest
20-
if: contains(github.event.pull_request.labels.*.name, 'performance')
2120
outputs:
2221
should_skip: ${{ steps.skip_check.outputs.should_skip }}
2322
steps:
@@ -53,8 +52,8 @@ jobs:
5352
# see discussion https://github.com/haskell/haskell-language-server/pull/4118
5453
# also possible to add more GHCs if we performs better in the future.
5554
ghc:
56-
- '9.6'
5755
- '9.8'
56+
- '9.10'
5857
os:
5958
- ubuntu-latest
6059

@@ -115,13 +114,14 @@ jobs:
115114
path: ~/.cabal/cabal.tar.gz
116115

117116
bench_example:
117+
if: contains(github.event.pull_request.labels.*.name, 'performance')
118118
needs: [bench_init, pre_job]
119119
runs-on: ${{ matrix.os }}
120120

121121
strategy:
122122
fail-fast: false
123123
matrix:
124-
ghc: ['9.6', '9.8']
124+
ghc: ['9.8', '9.10']
125125
os: [ubuntu-latest]
126126
cabal: ['3.10']
127127
example: ['cabal', 'lsp-types']

.pre-commit-config.yaml

Lines changed: 23 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,23 @@
1-
{
2-
"repos": [
3-
{
4-
"hooks": [
5-
{
6-
"entry": "stylish-haskell --inplace",
7-
"exclude": "(^Setup.hs$|test/testdata/.*$|test/data/.*$|test/manual/lhs/.*$|^hie-compat/.*$|^plugins/hls-tactics-plugin/.*$|^ghcide/src/Development/IDE/GHC/Compat.hs$|^plugins/hls-refactor-plugin/src/Development/IDE/GHC/Compat/ExactPrint.hs$|^ghcide/src/Development/IDE/GHC/Compat/Core.hs$|^ghcide/src/Development/IDE/Spans/Pragmas.hs$|^ghcide/src/Development/IDE/LSP/Outline.hs$|^plugins/hls-splice-plugin/src/Ide/Plugin/Splice.hs$|^ghcide/src/Development/IDE/Core/Rules.hs$|^ghcide/src/Development/IDE/Core/Compile.hs$|^plugins/hls-refactor-plugin/src/Development/IDE/GHC/ExactPrint.hs$|^plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction/ExactPrint.hs$)",
8-
"files": "\\.l?hs$",
9-
"id": "stylish-haskell",
10-
"language": "system",
11-
"name": "stylish-haskell",
12-
"pass_filenames": true,
13-
"types": [
14-
"file"
15-
]
16-
}
17-
],
18-
"repo": "local"
19-
},
20-
{
21-
"repo": "https://github.com/pre-commit/pre-commit-hooks",
22-
"rev": "v4.1.0",
23-
"hooks": [
24-
{
25-
"id": "mixed-line-ending",
26-
"args": ["--fix", "lf"],
27-
"exclude": "test/testdata/.*CRLF.*?\\.hs$"
28-
}
29-
]
30-
}
31-
]
32-
}
1+
# https://pre-commit.com/
2+
# https://github.com/pre-commit/pre-commit
3+
repos:
4+
- hooks:
5+
- entry: stylish-haskell --inplace
6+
exclude: >-
7+
(^Setup.hs$|test/testdata/.*$|test/data/.*$|test/manual/lhs/.*$|^hie-compat/.*$|^plugins/hls-tactics-plugin/.*$|^ghcide/src/Development/IDE/GHC/Compat.hs$|^plugins/hls-refactor-plugin/src/Development/IDE/GHC/Compat/ExactPrint.hs$|^ghcide/src/Development/IDE/GHC/Compat/Core.hs$|^ghcide/src/Development/IDE/Spans/Pragmas.hs$|^ghcide/src/Development/IDE/LSP/Outline.hs$|^plugins/hls-splice-plugin/src/Ide/Plugin/Splice.hs$|^ghcide/src/Development/IDE/Core/Rules.hs$|^ghcide/src/Development/IDE/Core/Compile.hs$|^plugins/hls-refactor-plugin/src/Development/IDE/GHC/ExactPrint.hs$|^plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction/ExactPrint.hs$)
8+
files: \.l?hs$
9+
id: stylish-haskell
10+
language: system
11+
name: stylish-haskell
12+
pass_filenames: true
13+
types:
14+
- file
15+
repo: local
16+
- repo: https://github.com/pre-commit/pre-commit-hooks
17+
rev: v4.1.0
18+
hooks:
19+
- id: mixed-line-ending
20+
args:
21+
- '--fix'
22+
- lf
23+
exclude: test/testdata/.*CRLF.*?\.hs$

cabal.project

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ constraints:
4949
-- in the future, thus: TODO: remove this flag.
5050
bitvec -simd,
5151

52-
if impl(ghc >= 9.9)
53-
-- https://github.com/haskell/haskell-language-server/issues/4324
54-
benchmarks: False
5552

5653
if impl(ghc >= 9.8.4) && impl(ghc < 9.8.5)
5754
-- By depending on ghc-lib-parser and ghc, we are encountering

haskell-language-server.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2100,7 +2100,7 @@ benchmark benchmark
21002100
hs-source-dirs: bench
21012101
build-tool-depends:
21022102
haskell-language-server:ghcide-bench,
2103-
hp2pretty:hp2pretty,
2103+
eventlog2html:eventlog2html,
21042104
default-extensions:
21052105
LambdaCase
21062106
RecordWildCards

shake-bench/shake-bench.cabal

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ source-repository head
1616
location: https://github.com/haskell/haskell-language-server.git
1717

1818
library
19-
if impl(ghc >= 9.10)
20-
buildable: False
2119
exposed-modules: Development.Benchmark.Rules
2220
hs-source-dirs: src
2321
build-depends:

shake-bench/src/Development/Benchmark/Rules.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ heapProfileRules build = do
535535
build -/- "*/*/*/*/*.heap.svg" %> \out -> do
536536
let hpFile = dropExtension2 out <.> "hp"
537537
need [hpFile]
538-
cmd_ ("hp2pretty" :: String) [hpFile]
538+
cmd_ ("eventlog2html" :: String) ["--heap-profile", hpFile]
539539
liftIO $ renameFile (dropExtension hpFile <.> "svg") out
540540

541541
dropExtension2 :: FilePath -> FilePath

0 commit comments

Comments
 (0)