Skip to content

Commit ae223c1

Browse files
authored
Merge branch 'master' into reimplement-shake
2 parents ac99d9c + 0a6c872 commit ae223c1

File tree

37 files changed

+173
-156
lines changed

37 files changed

+173
-156
lines changed

FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
open_collective: haskell-language-server

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,8 @@ it to look for the right executable.
773773
:heart: The Haskell tooling dream is near, we need your help! :heart:
774774
775775
- Join [our IRC channel](https://web.libera.chat/?channels=#haskell-language-server) at `#haskell-language-server` on [`libera`](https://libera.chat/).
776+
- Follow the [Haskell IDE team twitter account](https://twitter.com/IdeHaskell) for updates and help.
777+
- Join the [#haskell-tooling channel](https://discord.com/channels/280033776820813825/505370075402862594/808027763868827659) in the Functional Programming discord server. You can join the server via [this invitation](https://discord.gg/9spEdTNGrD).
776778
777779
### Style guidelines
778780
@@ -873,3 +875,7 @@ This will typically provide instructions for how to support new languages.
873875
874876
In some cases you may need to write a small bit of additional client support, or expose a way for the user to set the server's [configuration options](#configuring-haskell-language-server) and
875877
for them to configure how the server is started.
878+
879+
### Sponsorship
880+
881+
If you want to contribute financially you can do so via [open-collective](https://opencollective.com/haskell-language-server). In the past the funding has been used to sponsor [summer student projects](https://mpickering.github.io/ide/posts/2021-07-22-summer-of-hls.html).

cabal-ghc901.project

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,6 @@ source-repository-package
6767
subdir: dependent-sum-template
6868
-- https://github.com/obsidiansystems/dependent-sum/pull/57
6969

70-
source-repository-package
71-
type: git
72-
location: https://github.com/anka-213/lsp
73-
tag: tag-ghc-9.0.1-without-pr-326
74-
subdir: lsp-types
75-
subdir: lsp
76-
subdir: lsp-test
77-
-- https://github.com/haskell/lsp/pull/312
78-
7970
-- benchmark dependency
8071
source-repository-package
8172
type: git
@@ -84,7 +75,7 @@ source-repository-package
8475

8576
write-ghc-environment-files: never
8677

87-
index-state: 2021-07-14T20:31:09Z
78+
index-state: 2021-08-01T00:00:00Z
8879

8980
constraints:
9081
-- These plugins doesn't work on GHC9 yet

cabal.project

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ source-repository-package
3737

3838
write-ghc-environment-files: never
3939

40-
index-state: 2021-07-14T20:31:09Z
40+
index-state: 2021-08-01T00:00:00Z
4141

4242
constraints:
4343
-- Diagrams doesn't support optparse-applicative >= 0.16 yet
@@ -85,20 +85,3 @@ allow-newer:
8585
these:base,
8686
time-compat:base
8787

88-
source-repository-package
89-
type: git
90-
location: https://github.com/haskell/lsp.git
91-
tag: ef59c28b41ed4c5775f0ab0c1e985839359cec96
92-
subdir: lsp-types
93-
94-
source-repository-package
95-
type: git
96-
location: https://github.com/haskell/lsp.git
97-
tag: ef59c28b41ed4c5775f0ab0c1e985839359cec96
98-
subdir: lsp-test
99-
100-
source-repository-package
101-
type: git
102-
location: https://github.com/haskell/lsp.git
103-
tag: ef59c28b41ed4c5775f0ab0c1e985839359cec96
104-
subdir: lsp

ghcide/bench/lib/Experiments.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ import Development.Shake (CmdOption (Cwd, FileStdout),
3636
cmd_)
3737
import Experiments.Types
3838
import Language.LSP.Test
39-
import Language.LSP.Types
39+
import Language.LSP.Types hiding
40+
(SemanticTokenAbsolute (length, line),
41+
SemanticTokenRelative (length),
42+
SemanticTokensEdit (_start))
4043
import Language.LSP.Types.Capabilities
4144
import Numeric.Natural
4245
import Options.Applicative

ghcide/src/Development/IDE/Core/PositionMapping.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ import Data.Bifunctor
3030
import Data.List
3131
import qualified Data.Text as T
3232
import qualified Data.Vector.Unboxed as V
33-
import Language.LSP.Types
33+
import Language.LSP.Types (Position (Position), Range (Range),
34+
TextDocumentContentChangeEvent (TextDocumentContentChangeEvent))
3435

3536
-- | Either an exact position, or the range of text that was substituted
3637
data PositionResult a

ghcide/src/Development/IDE/LSP/Outline.hs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ import Development.IDE.GHC.Error (rangeToRealSrcSpan,
2222
realSrcSpanToRange)
2323
import Development.IDE.Types.Location
2424
import Language.LSP.Server (LspM)
25-
import Language.LSP.Types
25+
import Language.LSP.Types (DocumentSymbol (..),
26+
DocumentSymbolParams (DocumentSymbolParams, _textDocument),
27+
List (..), ResponseError,
28+
SymbolInformation,
29+
SymbolKind (SkConstructor, SkField, SkFile, SkFunction, SkInterface, SkMethod, SkModule, SkObject, SkStruct, SkTypeParameter, SkUnknown),
30+
TextDocumentIdentifier (TextDocumentIdentifier),
31+
type (|?) (InL), uriToFilePath)
2632
import Outputable (Outputable, ppr,
2733
showSDocUnsafe)
2834

ghcide/src/Development/IDE/Plugin/CodeAction.hs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,20 @@ import HscTypes (ImportedMods
6262
import Ide.PluginUtils (subRange)
6363
import Ide.Types
6464
import qualified Language.LSP.Server as LSP
65-
import Language.LSP.Types
65+
import Language.LSP.Types (CodeAction (..),
66+
CodeActionContext (CodeActionContext, _diagnostics),
67+
CodeActionKind (CodeActionQuickFix, CodeActionUnknown),
68+
CodeActionParams (CodeActionParams),
69+
Command,
70+
Diagnostic (..),
71+
List (..),
72+
ResponseError,
73+
SMethod (STextDocumentCodeAction),
74+
TextDocumentIdentifier (TextDocumentIdentifier),
75+
TextEdit (TextEdit),
76+
WorkspaceEdit (WorkspaceEdit, _changeAnnotations, _changes, _documentChanges),
77+
type (|?) (InR),
78+
uriToFilePath)
6679
import Language.LSP.VFS
6780
import Module (moduleEnvElts)
6881
import OccName

ghcide/src/Development/IDE/Plugin/CodeAction/PositionIndexed.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ where
1212

1313
import Data.Char
1414
import Data.List
15-
import Language.LSP.Types
15+
import Language.LSP.Types (Position (Position),
16+
Range (Range, _end, _start))
1617

1718
type PositionIndexed a = [(Position, a)]
1819

ghcide/src/Development/IDE/Spans/AtPoint.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ atPoint IdeOptions{} (HAR _ hf _ _ kind) (DKMap dm km) df pos = listToMaybe $ po
206206
hoverInfo ast = (Just range, prettyNames ++ pTypes)
207207
where
208208
pTypes
209-
| length names == 1 = dropEnd1 $ map wrapHaskell prettyTypes
209+
| Prelude.length names == 1 = dropEnd1 $ map wrapHaskell prettyTypes
210210
| otherwise = map wrapHaskell prettyTypes
211211

212212
range = realSrcSpanToRange $ nodeSpan ast

0 commit comments

Comments
 (0)