Skip to content

Commit f190af6

Browse files
committed
Update
1 parent 839ae86 commit f190af6

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

cabal.project

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ constraints:
4646
source-repository-package
4747
type:git
4848
location: https://github.com/haskell/lsp
49-
tag: 1e5940b4c85d53f01831bca487f3cd0a9466d3de
49+
tag: b3c18fe44124eedd1ce9138321e753b08784ddba
5050
subdir: lsp
5151
subdir: lsp-test
5252
subdir: lsp-types

haskell-language-server.cabal

-2
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,6 @@ test-suite hls-rename-plugin-tests
609609
, hls-test-utils == 2.7.0.0
610610
, lens
611611
, lsp-types
612-
, row-types
613612
, text
614613

615614
-----------------------------
@@ -2126,7 +2125,6 @@ test-suite ghcide-tests
21262125
, QuickCheck
21272126
, random
21282127
, regex-tdfa ^>=1.3.1
2129-
, row-types
21302128
, shake
21312129
, sqlite-simple
21322130
, stm

plugins/hls-rename-plugin/test/Main.hs

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
{-# LANGUAGE OverloadedLabels #-}
2-
{-# LANGUAGE OverloadedStrings #-}
1+
{-# LANGUAGE DisambiguateRecordFields #-}
2+
{-# LANGUAGE OverloadedStrings #-}
33

44
module Main (main) where
55

66
import Control.Lens ((^.))
77
import Data.Aeson
88
import qualified Data.Map as M
9-
import Data.Row ((.+), (.==))
109
import Data.Text (Text, pack)
1110
import Ide.Plugin.Config
1211
import qualified Ide.Plugin.Rename as Rename
@@ -81,9 +80,11 @@ tests = testGroup "Rename"
8180
expectNoMoreDiagnostics 3 doc "typecheck"
8281

8382
-- Update the document so it doesn't compile
84-
let change = TextDocumentContentChangeEvent $ InL $ #range .== Range (Position 2 13) (Position 2 17)
85-
.+ #rangeLength .== Nothing
86-
.+ #text .== "A"
83+
let change = TextDocumentContentChangeEvent $ InL TextDocumentContentChangePartial
84+
{ _range = Range (Position 2 13) (Position 2 17)
85+
, _rangeLength = Nothing
86+
, _text = "A"
87+
}
8788
changeDoc doc [change]
8889
diags@(tcDiag : _) <- waitForDiagnosticsFrom doc
8990

@@ -101,9 +102,11 @@ tests = testGroup "Rename"
101102
renameErr ^. L.message @?= "rename: Rule Failed: GetHieAst"
102103

103104
-- Update the document so it compiles
104-
let change' = TextDocumentContentChangeEvent $ InL $ #range .== Range (Position 2 13) (Position 2 14)
105-
.+ #rangeLength .== Nothing
106-
.+ #text .== "Int"
105+
let change' = TextDocumentContentChangeEvent $ InL TextDocumentContentChangePartial
106+
{ _range = Range (Position 2 13) (Position 2 14)
107+
, _rangeLength = Nothing
108+
, _text = "Int"
109+
}
107110
changeDoc doc [change']
108111
expectNoMoreDiagnostics 3 doc "typecheck"
109112

plugins/hls-semantic-tokens-plugin/test/SemanticTokensTest.hs

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import qualified Data.Aeson.KeyMap as KV
99
import Data.Default
1010
import Data.Functor (void)
1111
import Data.Map.Strict as Map hiding (map)
12-
import Data.Row ((.==))
13-
import Data.Row.Records ((.+))
1412
import Data.String (fromString)
1513
import Data.Text hiding (length, map,
1614
unlines)

0 commit comments

Comments
 (0)