Skip to content

Commit fa7dc35

Browse files
authored
Merge branch 'master' into master
2 parents c2f5bc1 + e8871ab commit fa7dc35

File tree

100 files changed

+2355
-618
lines changed

Some content is hidden

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

100 files changed

+2355
-618
lines changed

.circleci/config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ defaults: &defaults
7272
command: stack --stack-yaml=${STACK_FILE} test haskell-language-server --dump-logs --test-arguments="-j1"
7373
no_output_timeout: 120m
7474

75+
- run:
76+
name: Test hls-tactics-plugin
77+
# Tasty by default will run all the tests in parallel. Which should
78+
# work ok, but given that these CircleCI runners aren't the beefiest
79+
# machine can cause some flakiness. So pass -j1 to Tasty (NOT Stack) to
80+
# tell it to go slow and steady.
81+
command: stack --stack-yaml=${STACK_FILE} test hls-tactics-plugin:test:tests --dump-logs --test-arguments="-j1"
82+
no_output_timeout: 30m
83+
7584
- store_test_results:
7685
path: test-results
7786

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ indent_style = tab
88

99
[*]
1010
end_of_line = LF
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
1113

1214
[*.{hs,lhs}]
1315
indent_style = space
1416
indent_size = 4
15-
trim_trailing_whitespace = true
16-
insert_final_newline = true
1717
max_line_length = 80

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ defaults:
77
on:
88
release:
99
types: [created]
10+
1011
jobs:
1112

1213
build:

.github/workflows/test.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Testing
2+
3+
on: [push, pull_request]
4+
jobs:
5+
test:
6+
runs-on: ${{ matrix.os }}
7+
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
ghc: ['8.10.2', '8.10.1', '8.8.4', '8.8.3', '8.8.2', '8.6.5', '8.6.4']
12+
os: [ubuntu-latest, macOS-latest, windows-latest]
13+
exclude:
14+
- os: windows-latest
15+
ghc: '8.10.2' # broken due to https://gitlab.haskell.org/ghc/ghc/-/issues/18550
16+
- os: windows-latest
17+
ghc: '8.8.4' # also fails due to segfault :(
18+
- os: windows-latest
19+
ghc: '8.8.3' # fails due to segfault
20+
- os: windows-latest
21+
ghc: '8.8.2' # fails due to error with Cabal
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
with:
26+
submodules: true
27+
- uses: actions/setup-haskell@v1
28+
with:
29+
ghc-version: ${{ matrix.ghc }}
30+
cabal-version: '3.2'
31+
enable-stack: true
32+
33+
- name: Cache Cabal
34+
uses: actions/cache@v2
35+
env:
36+
cache-name: cache-cabal
37+
with:
38+
path: ~/.cabal/
39+
key: ${{ runner.os }}-${{ matrix.ghc }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
40+
restore-keys: |
41+
${{ runner.os }}-${{ matrix.ghc }}-build-${{ env.cache-name }}-
42+
${{ runner.os }}-${{ matrix.ghc }}-build-
43+
${{ runner.os }}-${{ matrix.ghc }}
44+
45+
- run: cabal update
46+
47+
# Need this to work around filepath length limits in Windows
48+
- name: Shorten binary names
49+
shell: bash
50+
run: |
51+
sed -i.bak -e 's/haskell-language-server/hls/g' \
52+
-e 's/haskell_language_server/hls/g' \
53+
haskell-language-server.cabal
54+
sed -i.bak -e 's/Paths_haskell_language_server/Paths_hls/g' \
55+
src/**/*.hs exe/*.hs
56+
57+
- name: Build
58+
# Retry it three times to workaround compiler segfaults in windows
59+
run: cabal build || cabal build || cabal build
60+
- name: Test
61+
env:
62+
HLS_TEST_EXE: hls
63+
HLS_WRAPPER_TEST_EXE: hls-wrapper
64+
# run the tests without parallelism, otherwise tasty will attempt to run
65+
# all functional test cases simultaneously which causes way too many hls
66+
# instances to be spun up for the poor github actions runner to handle
67+
run: cabal test --test-options=-j1
68+

ChangeLog.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Changelog for haskell-language-server
22

3+
## 0.5.1
4+
5+
0.5.1 is a minor bug fix release, mainly fixing an issue with the eval plugin
6+
as well as upgrading the ormolu and stylish-haskell dependencies.
7+
8+
### Pull requests merged
9+
- Minimal fix for eval regression
10+
([#488)](https://github.com/haskell/haskell-language-server/pull/488) by @pepeiborra
11+
- Bump stylish-haskell to 0.12.2.0
12+
([#482)](https://github.com/haskell/haskell-language-server/pull/482) by @maksbotan
13+
- Improve the emacs instructions a little
14+
([#479)](https://github.com/haskell/haskell-language-server/pull/479) by @michaelpj
15+
- Update README: HLS is no longer in *very* early stage
16+
([#475)](https://github.com/haskell/haskell-language-server/pull/475) by @Anrock
17+
- Tactic plugin: Excludes Dictionary arguments in GADTs in Destruct Tactic
18+
([#474)](https://github.com/haskell/haskell-language-server/pull/474) by @konn
19+
- Update doom emacs install instructions in README
20+
([#470)](https://github.com/haskell/haskell-language-server/pull/470) by @iyefrat
21+
- Add ghc-8.10.2 to circleci
22+
([#464)](https://github.com/haskell/haskell-language-server/pull/464) by @jneira
23+
- Bump ormolu to 0.1.3.0
24+
([#422)](https://github.com/haskell/haskell-language-server/pull/422) by @AlistairB
25+
326
## 0.5.0
427

528
0.5.0 comes with a new tactics plugin which provides case splitting, homomorphic case splitting, and lambda introduction:

0 commit comments

Comments
 (0)