Skip to content

Commit 0a18edd

Browse files
authored
Merge pull request #371 from alanz/prepare-0.4.0
Initial preparation for 0.4.0 tag
2 parents bf5795b + c02a7d9 commit 0a18edd

File tree

2 files changed

+99
-1
lines changed

2 files changed

+99
-1
lines changed

ChangeLog.md

+98
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,103 @@
11
# Changelog for haskell-language-server
22

3+
## 0.4.0
4+
5+
0.4.0 introduces the import lens plugin, which can convert your import statements into qualified imports, or into an explicit import list:
6+
7+
![Imports code lens](https://imgur.com/pX9kvY4.gif)
8+
9+
The eval plugin has also learnt two new commands, `:type` and `:kind`:
10+
11+
```haskell
12+
{-# LANGUAGE TypeApplications #-}
13+
foo :: Show a => a -> String
14+
foo = show
15+
16+
-- >>> :type foo @Int
17+
-- foo @Int :: Int -> String
18+
19+
-- >>> :type +v foo @Int
20+
-- foo @Int :: Show Int => Int -> String
21+
```
22+
23+
```haskell
24+
-- >>> type N = 1
25+
-- >>> type M = 40
26+
-- >>> :kind N + M + 1
27+
-- N + M + 1 :: Nat
28+
29+
-- >>> type N = 1
30+
-- >>> type M = 40
31+
-- >>> :kind N + M + 1
32+
-- N + M + 1 :: Nat
33+
```
34+
35+
There is now also support for GHC 8.10.2, and a new `haskell-language-server --probe-tools` command to help debug what version of each tool HLS is using.
36+
37+
```
38+
$ haskell-language-server --probe-tools
39+
haskell-language-server version: 0.3.0.0 (GHC: 8.10.1) (PATH: /Users/luke/.cabal/store/ghc-8.10.1/hskll-lngg-srvr-0.3.0.0-7c6d48c3/bin/haskell-language-server)
40+
Tool versions found on the $PATH
41+
cabal: 3.2.0.0
42+
stack: 2.3.3
43+
ghc: 8.10.2
44+
```
45+
46+
### Pull requests merged
47+
48+
- Bring over https://github.com/pepeiborra/hls-tutorial
49+
([#372](https://github.com/haskell/haskell-language-server/pull/372) by @bubba)
50+
- Update the ghcide upstream to be in haskell/ghcide
51+
([#370](https://github.com/haskell/haskell-language-server/pull/370) by @alanz)
52+
- Add ISSUE_TEMPLATE for github
53+
([#305](https://github.com/haskell/haskell-language-server/pull/305) by @fendor)
54+
- Add use-package to the list of emacs packages
55+
([#343](https://github.com/haskell/haskell-language-server/pull/343) by @rgleichman)
56+
- Implements `:type [+v/+d]` in Eval Plugin
57+
([#361](https://github.com/haskell/haskell-language-server/pull/361) by @konn)
58+
- Bump bounds of hie-bios to 0.7.0
59+
([#357](https://github.com/haskell/haskell-language-server/pull/357) by @maralorn)
60+
- Fix ImportLens plugin to work with GHC 8.10
61+
([#356](https://github.com/haskell/haskell-language-server/pull/356) by @Ailrun)
62+
- Add single file rewrites and ignore unknown files
63+
([#321](https://github.com/haskell/haskell-language-server/pull/321) by @pepeiborra)
64+
- Do not suggest explicit import lists for qualified imports
65+
([#354](https://github.com/haskell/haskell-language-server/pull/354) by @expipiplus1)
66+
- Explicit imports lens (as seen on Twitter)
67+
([#310](https://github.com/haskell/haskell-language-server/pull/310) by @pepeiborra)
68+
- Adds `:kind` and `:kind!` commands to Eval Plugin
69+
([#345](https://github.com/haskell/haskell-language-server/pull/345) by @konn)
70+
- tech(nix): update niv and remove allowbroken
71+
([#350](https://github.com/haskell/haskell-language-server/pull/350) by @willbush)
72+
- Update VS Code Haskell URL/repo
73+
([#338](https://github.com/haskell/haskell-language-server/pull/338) by @Sir4ur0n)
74+
- doc(hack): Add explanation to hack and test HLS
75+
([#329](https://github.com/haskell/haskell-language-server/pull/329) by @Sir4ur0n)
76+
- Apply the module pragmas for evaluation
77+
([#322](https://github.com/haskell/haskell-language-server/pull/322) by @pepeiborra)
78+
- Copy working stack-8.6.5.yaml to stack.yaml
79+
([#332](https://github.com/haskell/haskell-language-server/pull/332) by @jneira)
80+
- tech(nix): Allow broken as retrie is marked as broken
81+
([#331](https://github.com/haskell/haskell-language-server/pull/331) by @Sir4ur0n)
82+
- feat(git): Add install/hie.yaml to gitignore
83+
([#328](https://github.com/haskell/haskell-language-server/pull/328) by @Sir4ur0n)
84+
- Replace wrong occurrences of "engine" by "server"
85+
([#319](https://github.com/haskell/haskell-language-server/pull/319) by @tchoutri)
86+
- Simplify coc.nvim instructions
87+
([#315](https://github.com/haskell/haskell-language-server/pull/315) by @oblitum)
88+
- Coc config file requires a {} nesting everything
89+
([#317](https://github.com/haskell/haskell-language-server/pull/317) by @hyiltiz)
90+
- Restrict opentelemetry version for stack builds
91+
([#312](https://github.com/haskell/haskell-language-server/pull/312) by @jneira)
92+
- Add support for ghc-8.10.2
93+
([#308](https://github.com/haskell/haskell-language-server/pull/308) by @jneira)
94+
- Return nothing if tool is not on the PATH
95+
([#309](https://github.com/haskell/haskell-language-server/pull/309) by @fendor)
96+
- Probe tools cli
97+
([#306](https://github.com/haskell/haskell-language-server/pull/306) by @fendor)
98+
- Add fourmolu plugin (attempt 2) and add Brittany for ghc-8.10.1
99+
([#264](https://github.com/haskell/haskell-language-server/pull/264) by @georgefst)
100+
3101
## 0.3.0
4102

5103
0.3.0 comes with two new plugins, retrie and fourmolu, provides binaries for

haskell-language-server.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 2.2
22
category: Development
33
name: haskell-language-server
4-
version: 0.3.0.0
4+
version: 0.4.0.0
55
synopsis: LSP server for GHC
66
description: Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>
77
homepage: https://github.com/haskell/haskell-language-server#readme

0 commit comments

Comments
 (0)