Skip to content

Commit fa680de

Browse files
committed
v0.2.6.2.2.1: Build with lsp-1.6 on GHC 9.2 and LTS 20.26
1 parent d4eb378 commit fa680de

File tree

7 files changed

+45
-27
lines changed

7 files changed

+45
-27
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## v0.2.6.2.2.1 - 2023-11-21
8+
9+
### Added
10+
11+
- Building with `lsp-1.6`.
12+
Builds with `lsp` < 1.7 on GHC 8.10 (LTS 18.28), 9.0 (LTS 19.33), and 9.2 (LTS 20.26)
13+
714
## v0.2.6.2.2 - 2023-11-21
815

916
### Changed

agda-language-server.cabal

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cabal-version: 1.12
55
-- see: https://github.com/sol/hpack
66

77
name: agda-language-server
8-
version: 0.2.6.2.2
8+
version: 0.2.6.2.2.1
99
synopsis: An implementation of language server protocal (LSP) for Agda 2.
1010
description: Please see the README on GitHub at <https://github.com/agda/agda-language-server#readme>
1111
category: Development
@@ -23,6 +23,7 @@ extra-source-files:
2323
package.yaml
2424
stack.yaml
2525
stack-8.10.yaml
26+
stack-9.0.yaml
2627

2728
source-repository head
2829
type: git
@@ -70,7 +71,7 @@ library
7071
, base >=4.7 && <5
7172
, bytestring
7273
, containers
73-
, lsp <1.5
74+
, lsp <1.7
7475
, mtl
7576
, network
7677
, network-simple
@@ -98,7 +99,7 @@ executable als
9899
, base >=4.7 && <5
99100
, bytestring
100101
, containers
101-
, lsp <1.5
102+
, lsp <1.7
102103
, mtl
103104
, network
104105
, network-simple
@@ -153,7 +154,7 @@ test-suite als-test
153154
, base >=4.7 && <5
154155
, bytestring
155156
, containers
156-
, lsp <1.5
157+
, lsp <1.7
157158
, mtl
158159
, network
159160
, network-simple

package.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: agda-language-server
2-
version: 0.2.6.2.2
2+
version: 0.2.6.2.2.1
33
github: "banacorn/agda-language-server"
44
license: MIT
55
author: "Ting-Gian LUA"
@@ -12,6 +12,7 @@ extra-source-files:
1212
- package.yaml
1313
- stack.yaml
1414
- stack-8.10.yaml
15+
- stack-9.0.yaml
1516

1617
# Metadata used when publishing your package
1718
synopsis: An implementation of language server protocal (LSP) for Agda 2.
@@ -33,7 +34,7 @@ dependencies:
3334
- aeson
3435
- bytestring
3536
- containers
36-
- lsp < 1.5
37+
- lsp < 1.7
3738
- mtl
3839
- network
3940
- network-simple

src/Server.hs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE DeriveGeneric #-}
23

34
-- entry point of the LSP server
@@ -44,7 +45,11 @@ run options = do
4445
$ \(sock, _remoteAddr) -> do
4546
-- writeChan (envLogChan env) "[Server] connection established"
4647
handle <- socketToHandle sock ReadWriteMode
47-
_ <- runServerWithHandles handle handle (serverDefn options)
48+
_ <- runServerWithHandles
49+
#if MIN_VERSION_lsp(1,5,0)
50+
mempty mempty
51+
#endif
52+
handle handle (serverDefn options)
4853
return ()
4954
-- Switchboard.destroy switchboard
5055
return 0
@@ -103,9 +108,8 @@ handlers = mconcat
103108
= req
104109
result <- Handler.onHover uri pos
105110
responder $ Right result
106-
-- -- syntax highlighting
111+
-- -- syntax highlighting
107112
-- , requestHandler STextDocumentSemanticTokensFull $ \req responder -> do
108113
-- result <- Handler.onHighlight (req ^. (params . textDocument . uri))
109114
-- responder result
110115
]
111-

stack-9.0.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
resolver: lts-19.33
2+
compiler: ghc-9.0.2
3+
# Allow a newer minor version of GHC than the snapshot specifies
4+
compiler-check: newer-minor
5+
6+
packages:
7+
- .
8+
9+
# Use some newer versions than in the lts-19.33 snapshot
10+
extra-deps:
11+
- text-icu-0.8.0.1
12+
13+
flags:
14+
Agda:
15+
# optimise-heavily: true
16+
enable-cluster-counting: true

stack.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
resolver: lts-19.33
2-
compiler: ghc-9.0.2
1+
resolver: lts-20.26
2+
compiler: ghc-9.2.8
33
# Allow a newer minor version of GHC than the snapshot specifies
44
compiler-check: newer-minor
55

66
packages:
77
- .
88

9-
# Use some newer versions than in the lts-19.33 snapshot
10-
extra-deps:
11-
- text-icu-0.8.0.1
12-
139
flags:
1410
Agda:
1511
# optimise-heavily: true

stack.yaml.lock

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,10 @@
33
# For more information, please see the documentation at:
44
# https://docs.haskellstack.org/en/stable/lock_files
55

6-
packages:
7-
- completed:
8-
hackage: text-icu-0.8.0.1@sha256:22d21c91e7a81f1ee5766b3406f4fe9df0ff8cc426581a861de3f6f2fa413449,4624
9-
pantry-tree:
10-
sha256: 71ed32ecdce71adba6df6220e717b8ec4bd252cc403714c5c4ba70cf6d1aa1e4
11-
size: 3223
12-
original:
13-
hackage: text-icu-0.8.0.1
6+
packages: []
147
snapshots:
158
- completed:
16-
sha256: 6d1532d40621957a25bad5195bfca7938e8a06d923c91bc52aa0f3c41181f2d4
17-
size: 619204
18-
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/19/33.yaml
19-
original: lts-19.33
9+
sha256: 5a59b2a405b3aba3c00188453be172b85893cab8ebc352b1ef58b0eae5d248a2
10+
size: 650475
11+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/26.yaml
12+
original: lts-20.26

0 commit comments

Comments
 (0)